|
-
July 9th, 2011, 05:48 AM
#1
SDI and a popup dialog
I have a dialog class defined as
class MyDialog ublic CDialogEx
{};
and I'd like to call up the dialog after a right mouse click on the view of a SDI application
The menu is shown after the right mouse click but there is no dialog displayed after I select its item "call dialog".
void MyApplicatioView::OnDisplayDlg()
{
MyDialog d;
INT i=d.DoModal();
}
'i' always gets the value of -1.
Would you helo me please ?
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|