BS_DEFPUSHBUTTON is set automatically when selecting

From: crimson13 (rvblokkersREMOVE_at_REMOVEhotmail.com)
Date: 12/03/04


Date: Fri, 03 Dec 2004 10:20:30 +0100

Hi,

I have a parent CWnd (not a dialog) that has a number of CButtons as
child windows. The buttons are created with the
WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON styles (so no BS_DEFPUSHBUTTON). When
I click on a button the BS_DEFPUSHBUTTON style is set 'automatically'.
The problem is that when I click another button the BS_DEFPUSHBUTTON
style is set there as well, but the first selected button doesn't clear
this style. Obviously I could write this myself (a simple ModifyStyle)
on each click, but I was wondering if this is simply a
'bug/non-implementation' associated with using child buttons on a non
dialog window, or if I am missing something.

best regards
crimson13