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

Linking a "button" to a "dialog box"

Status
Not open for further replies.

sramelyk

Technical User
Sep 11, 2003
25
US
When I double click a certain button, I want another dialog box (ONE THAT I HAVE ALREADY DEFINED) to open. How do I achieve this.. I have been racking my brains, and apologize if the answer is obvious.. I just am not seeing it..
 
Code:
#include "TheOtherDialog.h"
  .
  .
  .
CYourFirstDialog::OnButtonSomething()
{
  CTheOtherDialog d;
  d.DoModal();
}

/Per

if (typos) cout << &quot;My fingers are faster than my brain. Sorry for the typos.&quot;;
 
We need to know if your using MFC or WTL or not?

Sounds like you might be a novice VC++ user. If so are you using a tutorial? If not you need to. Attempting to learn C++ Windows development using message based conversation will be extremely slow.

&quot;But, that's just my opinion... I could be wrong.&quot;

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top