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

C / C++ / MFC

 
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 
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 
JohnnyG wrote:
So, If in my derived button class, I have ON_NOTIFY_REFLECT_EX(BN_CLICKED, onclicked)and in my onclicked member function I return TRUE.

That's correct, but the BN_CLICKED notification is sent as a WM_COMMAND message and so the right macro should be ON_CONTROL_REFLECT_EX.

For the parent window nothing changes, you handle the notification as usual. The different message macro is used by MFC when looking up the message map, so it knows it has to call both handlers.

Paolo

------
Why spend 2 minutes doing it by hand when you can spend all night plus most of the following day writing a system to do it for you?
(Chris Maunder)

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 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Joan M27-Jan-03 8:32
professionalJoan M27-Jan-03 8:32 
GeneralRe: error C2712: Cannot use __try in functions that require object unwinding Pin
Mike Nordell27-Jan-03 9:20
Mike Nordell27-Jan-03 9:20 

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.