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

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

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

624 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