Link to home
Start Free TrialLog in
Avatar of klutch555
klutch555

asked on

How can I make a button open a dialog?

I'm trying to make a dialog based app, but I don't know how to get a button (A button like the OK button) to open up a dialog that I've made. For example, since there isn't any Menu in a dialog based app I can't get the ABOUTBOX dialog to show up. How would I make a button that says "About" open up the About Dialog?

Thanx
ASKER CERTIFIED SOLUTION
Avatar of Shay050799
Shay050799

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JohnPhelps
JohnPhelps

I am not sure which compiler you are using, but in the handler for a button that is on your main form you could activate any other dialog.

Either using WM_CLICK (As shown above) or using the OnClick event etc.

If you expand a little on your environment, I can help you more.
I am not sure which compiler you are using, but in the handler for a button that is on your main form you could activate any other dialog.

Either using WM_CLICK (As shown above) or using the OnClick event etc.

If you expand a little on your environment, I can help you more.
Avatar of klutch555

ASKER

I'm using Windows 95, Visual C++ 6.0 Standard. I'm making a MFC DIalog Based program. And becuase the dialog based programs don't have menus, I have to make buttons to open new dialogs (Acually, I just want to).

I made a project named LiPHiM, MFC Dialog based, and I want to add a button on the main dialog to open another dialog. How would I do this? I'm new to C++, so please explain as well as you can.