Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2005

Tip: Looking for answers? Try searching our database.

Question under MFC...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NewbieStats - 21 Mar 2005 08:36 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.