i have created runtime menu --
( admistrator ->managepackage,manage module).
but now i want to open a dialog when i select manage
package and any other diaolg when selecting manage module
( whole selection is at run time only ) . Please HELP .its
urgently required

Answers were Sorted based on User's Feedback



i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want t..

Answer / subiksha

Add handler function either in view class or in frame
class. Include that ManagePacakageDialog.h(Dialog which has
to be shown) in that view/frame implementation file.

Go to the handler function for that managepackage menuitem .

CManagePacakageDialog objMPD;
objMPD.DoModal();

Is This Answer Correct ?    1 Yes 0 No

i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want t..

Answer / shaarang

For opening any dialog you must call its DoModal() function.
so at the menu item item click event message handler
function you must create the object of the dialog class
(which was derived from CDialog)
and then call its DoModal()

like if the class was diag so,
diag d1(IDD_DIALOG1);
d1.DoModal();

Is This Answer Correct ?    0 Yes 0 No

i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want t..

Answer / unity

its not like taht sharrang , i found the answer that day
only .
While using appendmeny , i pass the id of the dialog box i
need to open . thats it .

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MFC Interview Questions

Difference between Debug and Release versions?

4 Answers  


In SDI how many view's are attached to document object and in MDI how many view's are attached to Document object?

2 Answers   Wipro,


Can you explaing the relashionship between document,frame and view ?

2 Answers  


What is the base class for MFC

3 Answers   HCL,


1)why we cant create more than one instance of the class Derived from CWinApp

5 Answers   Alstom,






How to setup a timer?

3 Answers   IBM,


What function is used to retrieve the currently selected index in a list box?

2 Answers  


What is the use of message map ?

5 Answers   TCS,


What is the difference between Synchronous sockets and asynchronous sockets?

2 Answers  


How we can findout Memoryleaks, In what way it can be avoided

6 Answers   Infosys,


What is the difference between Extension DLL and Regular DLL?

6 Answers   GE,


what is message Testing ?

1 Answers   L&T,


Categories