I'm sure this question has been asked before, but I really don't know what it's called that I am trying to do, so I am having trouble researching it.
I am trying to output the extended styles of a window to the console. So, for example, if I call GetWindowLong
on a test window, it will return the value 768 (0x300). My problem is, I know the window has multiple styles OR'd together, but I don't know how to decipher which ones have been OR'd together to result in 768.
For example, if the program used
WS_EX_TRANSPARENT | WS_EX_TOPMOST
(0x20L and 0x08L respectively), that would result in 0x28. How could I determine that 0x28 was in fact WS_EX_TRANSPARENT | WS_EX_TOPMOST
?