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
Thanx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
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.
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.
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.