i want to figure out what extended styles a window is using by filling a WINDOWINFO structure using the GetWindowInfo function.

im having trouble visualizing whats going on. the dwExStyle of the WINDOWINFO structure returns a DWORD value. i know that i need to be working at the bit level with 32bits to work with. if the bit is set im assuming that a certain style will be present. i dont know what bits i should be looking at to determine what style is what.

for example i was looking at what the sdk header files defined the WM_EX_APPWINDOW. it shows:

WS_EX_APPWINDOW 0x00040000L

so converting hex to binary i come up with:

100000000000000

because im working with 32 bits it really should look like this:

00000000000000000100000000000000

for example lets assume my dwExstyle returns only the WS_EX_APPWINDOW style. so the bits should look exactly the same as above right?

im having trouble visualizing whats going on. the dwExStyle of the WINDOWINFO structure returns a DWORD value. i know that i need to be working at the bit level with 32bits to work with. if the bit is set im assuming that a certain style will be present. i dont know what bits i should be looking at to determine what style is what.

for example i was looking at what the sdk header files defined the WM_EX_APPWINDOW. it shows:

WS_EX_APPWINDOW 0x00040000L

so converting hex to binary i come up with:

100000000000000

because im working with 32 bits it really should look like this:

00000000000000000100000000000000

for example lets assume my dwExstyle returns only the WS_EX_APPWINDOW style. so the bits should look exactly the same as above right?

i figured it out.