Click here to Skip to main content
16,010,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to debug the com ??? Pin
Alvaro Mendez13-Dec-02 5:17
Alvaro Mendez13-Dec-02 5:17 
GeneralRe: how to debug the com ??? Pin
Leesen13-Dec-02 15:36
Leesen13-Dec-02 15:36 
AnswerRe: how to debug the com ??? Pin
Renjith Ramachandran13-Dec-02 7:11
Renjith Ramachandran13-Dec-02 7:11 
GeneralRe: how to debug the com ??? Pin
Leesen13-Dec-02 16:00
Leesen13-Dec-02 16:00 
GeneralDirectory Prompt Pin
Rage13-Dec-02 4:52
professionalRage13-Dec-02 4:52 
GeneralRe: Directory Prompt Pin
carrie13-Dec-02 5:57
carrie13-Dec-02 5:57 
GeneralRe: Directory Prompt Pin
Rage15-Dec-02 21:03
professionalRage15-Dec-02 21:03 
Generalcatching messages in the view class Pin
ns13-Dec-02 4:52
ns13-Dec-02 4:52 
I have a rebar with a checkbox (all to br created in code). To make the view catch the message when the box is checked, the book said to add:

afx_msg void OnClick;


There was no association of this messagehandler with the object that emitted it. So I guess I was wondering if I had two checkboxes and wanted two different functions to run when they are checked, how would it know which one to run if I just do the afx_msg OnClick1 and OnClick2.

I note that when you write a handler for clicking a real button drawn from the toolbox onto a CFormView, the code generated by Visual Studio does associate the emitter of the messsage when it adds the relevant code. But here in this example from the book there is no such code to be added where the checkbox is associated with the clicked message.

HOpe its clear - my confusion.
Thanks


Appreciate your help,
ns
GeneralToolbar colour Pin
S O S13-Dec-02 4:45
S O S13-Dec-02 4:45 
GeneralCButtons in List Ctrl Pin
shahzad13-Dec-02 4:38
shahzad13-Dec-02 4:38 
GeneralInner classes Pin
Alexandru Savescu13-Dec-02 4:28
Alexandru Savescu13-Dec-02 4:28 
GeneralRe: Inner classes Pin
Alvaro Mendez13-Dec-02 5:11
Alvaro Mendez13-Dec-02 5:11 
GeneralRe: Inner classes Pin
Rickard Andersson2013-Dec-02 5:59
Rickard Andersson2013-Dec-02 5:59 
GeneralRe: Inner classes Pin
Michael Dunn13-Dec-02 6:13
sitebuilderMichael Dunn13-Dec-02 6:13 
GeneralRe: Inner classes Pin
Alexandru Savescu13-Dec-02 21:47
Alexandru Savescu13-Dec-02 21:47 
GeneralRe: Inner classes Pin
Rickard Andersson2013-Dec-02 22:58
Rickard Andersson2013-Dec-02 22:58 
GeneralRe: Inner classes Pin
Alexandru Savescu14-Dec-02 2:34
Alexandru Savescu14-Dec-02 2:34 
GeneralRe: Inner classes Pin
Rickard Andersson2014-Dec-02 3:51
Rickard Andersson2014-Dec-02 3:51 
GeneralRe: Inner classes Pin
Michael Dunn14-Dec-02 4:31
sitebuilderMichael Dunn14-Dec-02 4:31 
GeneralOffice automation question Pin
Gunnar Mätzler13-Dec-02 4:13
Gunnar Mätzler13-Dec-02 4:13 
GeneralResizing a rebar Pin
ns13-Dec-02 3:45
ns13-Dec-02 3:45 
GeneralRe: Resizing a rebar Pin
ns13-Dec-02 3:50
ns13-Dec-02 3:50 
QuestionCreate a CHtmlDocument for a CHtmlView programatically using "createElement"? Pin
Joan M13-Dec-02 2:59
professionalJoan M13-Dec-02 2:59 
AnswerRe: Create a CHtmlDocument for a CHtmlView programatically using "createElement"? Pin
Stephane Rodriguez.13-Dec-02 4:17
Stephane Rodriguez.13-Dec-02 4:17 
GeneralRe: Create a CHtmlDocument for a CHtmlView programatically using "createElement"? Pin
Joan M13-Dec-02 4:32
professionalJoan M13-Dec-02 4:32 

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.