BS_DEFPUSHBUTTON is set automatically when selecting
From: crimson13 (rvblokkersREMOVE_at_REMOVEhotmail.com)
Date: 12/03/04
- Next message: Ashok K Kumar: "Re: Events from CHtmlView"
- Previous message: Mark Randall: "Re: Getting mouse events in disabled buttons"
- Next in thread: AliR: "Re: BS_DEFPUSHBUTTON is set automatically when selecting"
- Reply: AliR: "Re: BS_DEFPUSHBUTTON is set automatically when selecting"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Ashok K Kumar: "Re: Events from CHtmlView"
- Previous message: Mark Randall: "Re: Getting mouse events in disabled buttons"
- Next in thread: AliR: "Re: BS_DEFPUSHBUTTON is set automatically when selecting"
- Reply: AliR: "Re: BS_DEFPUSHBUTTON is set automatically when selecting"
- Messages sorted by: [ date ] [ thread ]