Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

I have tried creating two modeless dialogs following procedure of
WWW.functionx.com/visualc/controls/dialogbox.htm

When I run only one modeless dialog is opened.
How do I open other dialog also.
please do elaborate the procedure.
Please do help.

Thanks in advance,
vandana
Posted
Updated 28-Mar-11 5:13am
v2
Comments
[no name] 28-Mar-11 5:09am    
Do you want to open two dialog at same time or or after another.
vandanaraob 28-Mar-11 11:09am    
Dialogs open at same time or after opening one dialog, both are my requirements.

That is because it uses a Modal dialog: nothing else happens until the dialog is dismissed by the user.

Instead, use CDialog::Create[^] then ShowWindow - the link has an example.
 
Share this answer
 
Hi,
I think you are refering to the example containing the dialog "Combining Dialog Boxes" and the section

void CDialog2aDlg::OnLButtonDblClk(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	CSecondDlg Dlg;
	Dlg.DoModal();

	CDialog::OnLButtonDblClk(nFlags, point);
}


If it is, then the following may be the solution,
Include ON_WM_LBUTTONDBLCLK() in Message map, like this

BEGIN_MESSAGE_MAP(CDialog2aDlg, CDialog)
    //other messagemaps

    //L button Double click message map
    ON_WM_LBUTTONDBLCLK()
END_MESSAGE_MAP()
 
Share this answer
 
Comments
[no name] 28-Mar-11 6:17am    
No meaning i thing so. please define criterian venkat. may you reply with nice one.
Dalek Dave 28-Mar-11 11:46am    
Seems Reasonable.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900