What is command routing in MFC



What is command routing in MFC..

Answer / bob

Check the Command pattern in Gof books, MFC almost use it in
the same way:
SubWidget in the dialog will catch it firstly, it will
forward it to Parent window(the dialog) if *request is not
for it or no handler defined.

This procedure runs recursively, until one handle it or pass
it to application object. Application will omit unknown
command by default

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More OOPS Interview Questions

can inline function declare in private part of class?

1 Answers  


Why do pointers exist?

0 Answers  


Which is the parameter that is added to every non-static member function when it is called?

3 Answers   Accenture,


create a c++ program that will accepts 9 inputs using 3 by 3 array.

1 Answers  


What is meant by multiple inheritance?

0 Answers  


What does enum stand for?

0 Answers  


which is platform independent device used in computers

2 Answers  


Why a "operator=(...)" when there is a copy ctor?

2 Answers  


What is a class and object?

0 Answers  


#include <stdio.h> #include <alloc.h> #include <stdlib.h> #include <conio.h> void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.

0 Answers  


What type of loop is a for loop?

0 Answers  


State what is encapsulation and friend function?

0 Answers   BirlaSoft,


Categories