Groups | Blog | Home
all groups > visual c > march 2005 >

visual c : Question under MFC...


NewbieStats NO[at]SPAM hotmail-dot-com.no-spam.invalid
3/21/2005 1:36:37 AM
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?*/
}



Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
David Lowndes
3/21/2005 9:53:41 AM
[quoted text, click to view]

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".

AddThis Social Bookmark Button