Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


One dialog to the next.

Posted on 1999-07-14
Medium Priority
Last Modified: 2012-05-04
I am new to C++ but I think this should be easy. I have two dialogs(forms). One named IDD_MINSTALL_DIALOG and another named IDD_WELCOME. I have a button on the first dialog to click and go to the next dialog. What code should i put behind this command button? I need the first form to be hidden and then make the second form appear. This is a install demo that I'm putting together for some one. Since I'm new as much code as you can give would be great.
Question by:scully12
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1200022
to make install application it esier doing it as wizard.
same thing as window and other windows instalation.

look at cpropertysheet/cpropertypage in the VC help

Expert Comment

ID: 1200023
start the first dialog modal.
if it ends with your button, then start the 2nd dialog modal.



Accepted Solution

Laminamia063099 earned 150 total points
ID: 1200024
In your DlgProc, capture the button command with:

  switch (LOWORD (wParam))
       ShowWindow (hwnd, SW_HIDE);
       ShowWindow (hwndNextDialog, SW_SHOW);
This assumes that both dialogs have been created and hidden ahead of time.  Hiding them both (that way they always exist and you can put in a button to go back, hiding the current one and going to the previous) at the beginning can be done with
   ShowWindow (hwndDialogX, SW_HIDE);
for each dialog window.  

If you need more code, please say so.

If you want to clarify anything, do so as well.

Laminamia :)

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question