Hey...
Ive been making a Program with Microsoft Visual C++ 6.0...
Ive made it so that my Main interface window has buttons, and ive made
other CDialog resources but I dont know how to make it so when i click
on the Button on the main interface itll open another CDialog
window...
How would i do that?
void CClientDlg::OnButton01()
{
/*How do i Link it to Button01.cpp or IDD_Dialog1?*/
}
David Lowndes - 21 Mar 2005 10:51 GMT
>Ive made it so that my Main interface window has buttons, and ive made
>other CDialog resources but I dont know how to make it so when i click
[quoted text clipped - 7 lines]
> /*How do i Link it to Button01.cpp or IDD_Dialog1?*/
>}
You normally create a class for the dialog (use the dialog editor
facilities to do this if you haven't already), and then use code like
this:
CMyDialog dlg;
dlg.DoModal();
I suggest that you work through the MFC example tutorial "scribble".
Dave