What is the use of CCmdTarget ?
Answers were Sorted based on User's Feedback
CCmdTraget has the implementation of the Message map.
Message map routes the commands & messages to the member
functions you write to handle them. Key frame work classes
derived from the CCmdtarget includes CWnd, Cview etc..
If you need new user class handel the messages, derive the
class from any of the class which are derived from
CCmdTarget.
| Is This Answer Correct ? | 20 Yes | 5 No |
Answer / abhijit
* It is the base class for MFC's message map architecture
* Message map functionality is given through its virtual
member function OnCmdMsg
*** Owing to the way message map architecture is
implemented there is no provision for multiple inheritance
in MFC (1 window can not have two parents ... if the
derived class cant handle a message... and both parents
can... which parent should handle!!!)
| Is This Answer Correct ? | 12 Yes | 4 No |
Answer / rock
CCmdTarget is used for message handling purpose and it also
handels defwindowproc()
| Is This Answer Correct ? | 1 Yes | 4 No |
Answer / meenakshi sundaram
CCmdTarget is the base class for doing automation in MFC
based COM class.
| Is This Answer Correct ? | 4 Yes | 10 No |
Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);
General purpose classes in MFC
Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer
1)set the Title for The File DialogBox, in MFC?
What is the use of CCmdTarget ?
If there is more than 100 control in a window how we can change the Taborder of a controls
How to update all the views whenver document got updated ?
1)why we cant create more than one instance of the class Derived from CWinApp
how to repaint when working with horizontal scroll bar
What is a message map, and what is the advantage of a message map over virtual functions?
is it possible to display a window .without using windowclass
what is the difference between SDI and MDI
15 Answers CMC, HCL, Siemens,