Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP!!!! I can't get the dialog box to open when the button is clicked

Status
Not open for further replies.

ZoomerX13

Programmer
Feb 19, 2005
3
US
I am trying to have a dialog box open another dialog box when the user pushes the button, but it is not working. I have this code so far, but nothing else.
Code:
void CMemadialogDlg::OnButton1() 
{
	// TODO: Add your control notification handler code here
	
	
}

HELP!!!!
 
Code:
void CMemadialogDlg::OnButton1() 
{
  CAnotherDialog dlg(this);
  dlg.DoModal();
}

/Per
[sub]
www.perfnurt.se[/sub]
 
If you don't want to do Modal, try this



CMyDialogWindow* MyDialog = new CMyDialogWindow;
MyDialog->Create(IDD_MY_DIALOG, this);
MyDialog->ShowWindow(SW_SHOW);



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top