I am trying to find whether a window possesses a particular style. So, for a window with the handle hwnd, I use:
DWORD styles=GetWindowLongPtr(hwnd,GWL_STYLE);
This should give me the styles DWORD. My puzzle is how I then work out whether a particular style is present - for example whether the window has a vertical scroll bar.
Since the styles DWORD is constructed out of bitwise or operations when the window is created, I am after a test to see whether a particular constant was one of the constants that was 'bitwised ored' (hopefully you understand what I mean!). How would one do this in general?
*Please also tell me if I have overlooked a simpler way of checking if a window has a particular style!