Click to See Complete Forum and Search --> : GetButtonStyle() return incorrect values


Martin Horst
May 17th, 1999, 12:21 PM
Hi,

I'm writing a new CButton owner draw class which I can
use with push button and radio buttons / check boxes, too.

Therefor I read out the button style whith the GetButtonStyle()
function and check the flags BS_CHECKBOX and BS_RADIOBUTTON to
realize which kind of button I have to draw.

The problem now is that this function still returns the same
values for all kind of buttons (push buttons, default push buttons,
radio buttons and check buttons).

The same happens when I try to use the GetWindowLong function.
Exist there another way to check out the kind of button I have to
draw?

Hope someone can help.
Thanks in advance.

Martin Horst