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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Dialog Windows

Status
Not open for further replies.

japhy

Programmer
Sep 27, 2004
12
US
Hi everyone, i need some help with dialog windows in Visual C++ 6.

I create a new dialog window under the resource view tab and call it from the code of a previous dialog window using:

CDialog dlg(IDD_MYSECONDDLG);
dlg.DoModal();

and that works fine, trouble is any buttons i insert in the new window don't seem to do anything...i.e. i insert a button that and just put in a MessageBox("Test Worked!"); bit of code

When i execute the program and go the second window, i hit the button and nothing happens...am i calling this second dialog window incorrectly?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top