Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDOH! Pin
will138327-Jan-03 8:55
will138327-Jan-03 8:55 
GeneralCreating MFC exe - whats Automation support Pin
ns27-Jan-03 8:21
ns27-Jan-03 8:21 
GeneralRe: Creating MFC exe - whats Automation support Pin
Chris Losinger27-Jan-03 8:35
professionalChris Losinger27-Jan-03 8:35 
GeneralOkay! Pin
ns27-Jan-03 8:40
ns27-Jan-03 8:40 
GeneralButtons Help!!! Pin
nutkase27-Jan-03 8:13
nutkase27-Jan-03 8:13 
GeneralRe: Buttons Help!!! Pin
PJ Arends27-Jan-03 8:58
professionalPJ Arends27-Jan-03 8:58 
GeneralConfused: CButton's DrawItem and OnClicked Pin
JohnnyG27-Jan-03 8:04
JohnnyG27-Jan-03 8:04 
GeneralRe: Confused: CButton's DrawItem and onclicked Pin
Paolo Messina27-Jan-03 14:09
professionalPaolo Messina27-Jan-03 14:09 
JohnnyG wrote:
When in a toolbar the button receives the onclick event but it doesn't pass or reflect the message back to the toolbar and eventually the framewindow.

Actually, it's exactly the opposite. The OnClicked (BN_CLICKED) notification message is sent to the parent window, or better to the window specified as parent during control creation (the parent window can be changed later).
MFC reflects notification messages (either in the form of WM_NOTIFY or WM_COMMAND) back to the child control. The message can or can not be processed by the parent then, in dependence to what message macro you use: ON_xxx_REFLECT or ON_xxx_REFLECT_EX (where xxx can be NOTIFY or CONTROL).
If you use the EX extension the message handler function return value is not void, but a BOOL that specifies if the parent can handle the message as well (TRUE) or not (FALSE). Without EX, the parent is called only if the child does not have an handler for the message.
For details see TN062 (Technical Note 62: Message Reflection for Windows Controls) on MSDN.

Paolo

------
"airplane is cool, but space shuttle is even better" (J. Kaczorowski)
GeneralRe: Confused: CButton's DrawItem and onclicked Pin
JohnnyG28-Jan-03 3:04
JohnnyG28-Jan-03 3:04 
GeneralRe: Confused: CButton's DrawItem and onclicked Pin
Paolo Messina28-Jan-03 3:34
professionalPaolo Messina28-Jan-03 3:34 
GeneralRe: Confused: CButton's DrawItem and onclicked Pin
JohnnyG28-Jan-03 6:52
JohnnyG28-Jan-03 6:52 
GeneralRe: Confused: CButton's DrawItem and onclicked Pin
Paolo Messina29-Jan-03 0:33
professionalPaolo Messina29-Jan-03 0:33 
GeneralC++ DLL usage in VC7 Pin
Jim Crafton27-Jan-03 7:29
Jim Crafton27-Jan-03 7:29 
GeneralRe: C++ DLL usage in VC7 Pin
Joe Woodbury27-Jan-03 7:56
professionalJoe Woodbury27-Jan-03 7:56 
GeneralRe: C++ DLL usage in VC7 Pin
Mike Nordell27-Jan-03 9:16
Mike Nordell27-Jan-03 9:16 
GeneralWorker thread + memory leak.. Pin
RobJones27-Jan-03 7:01
RobJones27-Jan-03 7:01 
GeneralRe: Worker thread + memory leak.. Pin
Chris Meech27-Jan-03 7:35
Chris Meech27-Jan-03 7:35 
GeneralRe: Worker thread + memory leak.. Pin
RobJones27-Jan-03 7:51
RobJones27-Jan-03 7:51 
GeneralRe: Worker thread + memory leak.. Pin
Chris Meech27-Jan-03 7:56
Chris Meech27-Jan-03 7:56 
GeneralRe: Worker thread + memory leak.. Pin
RobJones27-Jan-03 8:06
RobJones27-Jan-03 8:06 
GeneralRe: Worker thread + memory leak.. Pin
Joaquín M López Muñoz27-Jan-03 8:05
Joaquín M López Muñoz27-Jan-03 8:05 
GeneralRe: Worker thread + memory leak.. Pin
RobJones27-Jan-03 9:38
RobJones27-Jan-03 9:38 
GeneralRe: Worker thread + memory leak.. Pin
Joaquín M López Muñoz27-Jan-03 9:44
Joaquín M López Muñoz27-Jan-03 9:44 
Generalerror C2712: Cannot use __try in functions that require object unwinding Pin
Joan M27-Jan-03 6:30
professionalJoan M27-Jan-03 6:30 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Chris Meech27-Jan-03 7:43
Chris Meech27-Jan-03 7:43 

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.