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
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 |
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 |
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 |
What is document-view architecture ? Give me one real time example for SDI ?
what is the component of CLR ?
What is subclassing?
What is LoadLibrary function returns?
If i derive a new class from CObject what are the basic features my derived wil get ?
what is the updated verssion in vc++
Explain the flow of SDI application?
How to update all the views whenver document got updated ?
What types of threads are supported by MFC framework?
1)set the Title for The File DialogBox, in MFC?
if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first
What is the use of UpdateData funciton ?