Post by Philipp Huberhi!
is it possible that the function GetButtonStyle() returns one single style
value?
I'm not sure what you're asking, but GetButtonStyle returns the LOBYTE of
the GetWindowLong/GWL_STYLE value. This should be any of the values from
BS_PUSHBUTTON through BS_BITMAP. Since these button styles (with the
exception of BS_LEFTTEXT it would appear) are not combinable bit flags but
rather exclusive and consecutive integers, I think you should consider it as
a single style value indicating the button's type.
Post by Philipp Huberwhere can i get information when to use a mask and when to use the plain
value?
What mask do you have in mind? The SDK header #defines the BS_TYPEMASK value
that masks off all but the lower 4 bits of the style, which would seem to
mask out BS_LEFTTEXT, BS_ICON and BS_BITMAP from the value returned by
GetButtonStyle.
Post by Philipp Huberhow about other controls/windows?
I don't think you should use GetButtonStyle for controls/windows other than
those of the BUTTON WNDCLASS. The OS uses the upper 16bits of the GWL_STYLE
for general window styles and the lower 16bits are free for the WNDCLASS
implementation to define.
Post by Philipp Huberactually i am a little bit confused about this...
Hope I've helped, but don't hesitate to say otherwise.
--
Jeff Partch [VC++ MVP]