Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Group Controls Pin
Joel Holdsworth16-Jul-04 9:27
Joel Holdsworth16-Jul-04 9:27 
GeneralRe: Group Controls Pin
Mike Dimmick16-Jul-04 9:40
Mike Dimmick16-Jul-04 9:40 
GeneralRe: Group Controls Pin
David Crow16-Jul-04 9:52
David Crow16-Jul-04 9:52 
GeneralRe: Group Controls Pin
Joel Holdsworth16-Jul-04 9:55
Joel Holdsworth16-Jul-04 9:55 
GeneralRe: Group Controls Pin
David Crow16-Jul-04 10:01
David Crow16-Jul-04 10:01 
GeneralRe: Group Controls Pin
Joel Holdsworth16-Jul-04 10:05
Joel Holdsworth16-Jul-04 10:05 
GeneralRe: Group Controls Pin
Antti Keskinen16-Jul-04 12:46
Antti Keskinen16-Jul-04 12:46 
GeneralRe: Group Controls Pin
PJ Arends18-Jul-04 9:25
professionalPJ Arends18-Jul-04 9:25 
I do not know if you figured this out already, but this is the code I use
(pWnd->IsKindOf(RUNTIME_CLASS(CButton))) &&
(((pWnd->GetStyle()) & BS_GROUPBOX) == BS_GROUPBOX)

BS_GROUPBOX is defined as 0x7 ( 0111 in binary ) so it is a combination of bits. Using just GetStyle() & BS_GROUPBOX will return a positive value if any one of the three bits are set (ie for BS_DEFPUSHBUTTON, BS_CHECKBOX, BS_AUTOCHECKBOX and BS_RADIOBUTTON). By checking for equality you ensure that all three bits are set.








"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
GeneralIntercepting Alt+F4 Pin
Joel Holdsworth16-Jul-04 8:31
Joel Holdsworth16-Jul-04 8:31 
GeneralRe: Intercepting Alt+F4 Pin
Antti Keskinen16-Jul-04 8:49
Antti Keskinen16-Jul-04 8:49 
GeneralRe: Intercepting Alt+F4 Pin
Joel Holdsworth16-Jul-04 9:32
Joel Holdsworth16-Jul-04 9:32 
GeneralRe: Intercepting Alt+F4 Pin
Mike Dimmick16-Jul-04 9:46
Mike Dimmick16-Jul-04 9:46 
GeneralRe: Intercepting Alt+F4 Pin
Joel Holdsworth16-Jul-04 10:01
Joel Holdsworth16-Jul-04 10:01 
GeneralRe: Intercepting Alt+F4 Pin
Mike Dimmick16-Jul-04 10:23
Mike Dimmick16-Jul-04 10:23 
GeneralRe: Intercepting Alt+F4 Pin
Antti Keskinen16-Jul-04 12:40
Antti Keskinen16-Jul-04 12:40 
GeneralCredUIConfirmCredentials Pin
Anthony988716-Jul-04 7:59
Anthony988716-Jul-04 7:59 
GeneralRe: CredUIConfirmCredentials Pin
David Crow16-Jul-04 8:21
David Crow16-Jul-04 8:21 
GeneralRe: CredUIConfirmCredentials Pin
Anthony988717-Jul-04 3:01
Anthony988717-Jul-04 3:01 
GeneralOpening explorer and selecting a file Pin
Andy Moore16-Jul-04 7:26
Andy Moore16-Jul-04 7:26 
GeneralRe: Opening explorer and selecting a file Pin
David Crow16-Jul-04 8:12
David Crow16-Jul-04 8:12 
QuestionGraphic card problem????? Pin
newbeetoc16-Jul-04 7:16
newbeetoc16-Jul-04 7:16 
AnswerRe: Graphic card problem????? Pin
Chris Losinger16-Jul-04 9:01
professionalChris Losinger16-Jul-04 9:01 
GeneralRe: Graphic card problem????? Pin
newbeetoc16-Jul-04 9:09
newbeetoc16-Jul-04 9:09 
GeneralAutomatically determing Save File Dialog filter type Pin
Andy Moore16-Jul-04 7:13
Andy Moore16-Jul-04 7:13 
GeneralRe: Automatically determing Save File Dialog filter type Pin
palbano16-Jul-04 7:29
palbano16-Jul-04 7:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.