Re: insert dialog

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Frank,

Take a look at these articles and see if they help:

http://www.codeproject.com/dialog/modelesschild.asp
http://www.codeproject.com/dialog/CRHChildDialog.asp

Tom

"frank" <f_rubino@xxxxxxxxxxx> wrote in message
news:%23xgiYmb1FHA.560@xxxxxxxxxxxxxxxxxxxxxxx
>A question regarding MS Visual C++ 6.0 and inserting a second dialog:
> Could someone tell me what additional steps to take in order to be
> able to add in a second dialog box after you have let the MFC Wizard
> create
> a working dialog project of lets say name of: FIRST?
> So far I have taken these steps and am getting error messages.
> steps:
> 1 In resources of FIRST clicked on insert dialog
> 2 New dialog gets ID of ID_Dialog1
> 3 Use wizard to Create new class CSecondDialog, with base class set to
> Cdialog
> 4 In the command button's code section that I want to have open the second
> dialog box I add the following lines:
> //create the second dialog window
> m_dlg.Second.Create(ID_Dialog1, this);
>
> //show the second dialog window
> m_dlg.Second.ShowWindow(SW_SHOW);
> 5 Include the header for this Second dialog at the top of the original
> dialog
> source code in the #include area with others, sidenote of what order
> here?
> #include "SecondDialog.h"
> 6 Include the header for the main FIRST dialog in the Seconddlg.cpp source
> code file
> for the second dialog
> #include "FIRSTDialog.h"
> 7 then in FIRST's message map area, after the public and protected area I
> add:
> private:
> CSecondDlg m_dlgSecond;
> /***************************************************************************
> ******************/
> Ok what else needs to be done because the compiler complains of missing
> a semicolon before the member variable?
>
>


.



Relevant Pages

  • Re: SVGA, LCD, Win CE 6.0 and PB
    ... site addressing display drver issues, not to mention the source code. ... travel down thru Win CE from boot.ini to the place genrating final LCD ... I can have a desktop larger than physical screen window. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: how to hide the WZC dialog
    ... Use Remote Registry Editor and export the entire device registry to ... If I manualy check the checkbox, then the window won't appear anymore, ... I did not find this source code, ... <apellerin AT adeneo DOT adetelgroup DOT ...
    (microsoft.public.windowsce.embedded)
  • Re: Foundation Follies
    ... "gpsman" wrote in message ... The previous owners had a window opening in the foundation enlarged to ... be recessed across the header re-tying the unsound foundation to the ... Even my laydown "whatever it costs is whatever it costs and I ...
    (alt.home.repair)
  • Foundation Follies
    ... time and gravity and water do. ... The previous owners had a window opening in the foundation enlarged to ... be recessed across the header re-tying the unsound foundation to the ...
    (alt.home.repair)
  • Re: Function prefix comments in C files
    ... > function prototype in a header .h file. ... I work for a large organization where as 10 or so programmers might ... directory at the source code to find information about how to call a ...
    (comp.arch.embedded)