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 |
Whats is DDX & DDV in MFC?
What is the size of class
1.Get string1,string2,string3 1.add string1 and 2,string1 and 3. 2.replace vowels with T 3.count number of T. 4.remove T 5.COPY string1 to stringf. 6.restore string1. print the following 1.Number of T 2.StringF 3.string1+string2+string3 Use pointers and functions
What interface must be supported by an ActiveX control?
What is a message map, and what is the advantage of a message map over virtual functions?
How you find memory leaks?
What is stack size in win32 program?
How can i change the color of a dropdowncombobox elements
how can u change button shape at run time
In VC++ How to transfer between one exe to another exe while running..
Do you have an idea about MFC?
What function is used to disable a control at runtime?