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 message Testing ?

1 Answers   L&T,


2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

0 Answers   TCS,


1)How to change a text of a button in runtime?

2 Answers  


What are the types of button controls?

10 Answers  


what is the difference between compiling and building?

1 Answers  






What are the advantages of using Doc/View or SDI over DialogBox

2 Answers  


WHAT IS DIFFERENT BETWEN RELEASE MODE & DEBUGGING MODE

4 Answers   Google, Microsoft, TCS,


What MFC base classes provide support for ActiveX controls?

2 Answers   Wipro,


How to find the mouse entering an image?..while entering need to display next image...

4 Answers  


Whats is DDX & DDV in MFC?

1 Answers   HCL,


What is mfc class hierarchy?

0 Answers  


What is socket?

3 Answers  


Categories