What is the use of CCmdTarget ?

Answers were Sorted based on User's Feedback



What is the use of CCmdTarget ?..

Answer / satheeshkedarisetti

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

What is the use of CCmdTarget ?..

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

What is the use of CCmdTarget ?..

Answer / rock

CCmdTarget is used for message handling purpose and it also
handels defwindowproc()

Is This Answer Correct ?    1 Yes 4 No

What is the use of CCmdTarget ?..

Answer / meenakshi sundaram

CCmdTarget is the base class for doing automation in MFC
based COM class.

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More MFC Interview Questions

What is the difference between regular dlls and extended dlls?

2 Answers  


how can u change button shape at run time

3 Answers   Samsung,


Hi can anyone explain about the synchronization objects types and where we are using in the code.

1 Answers  


what is functioning of DIalodDataXchange ..?

0 Answers  


What is the use of message map ?

5 Answers   TCS,






What is CArchive class dowes?

4 Answers  


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

0 Answers  


What are the differences between MFC Exception macros and C++ exception keywords?

2 Answers  


is there any class which is not derived from Cobject

11 Answers   Patni,


List out the parameters of WinMain Function.

2 Answers   Mphasis,


1)How to change a text of a button as Dynamically?

1 Answers   HCL,


How can i implement the dynamic menus in MFC plz give the code

2 Answers  


Categories