
displaying dialog box with my main window..
Quote:
> I created a dialog box using the resource editor. Now i have to display
>the dialog box together with my Main window. What are the
>functions/messages that i need to override/handle..
Arun,
From what you say, it sounds like you want a modeless dialog box. If
so, you'll need a class for the dialog (use Class Wizard from the
dialog editor for your new dialog), then somewhere (possibly in your
main frame window class), you'll need a pointer to your dialog class:
CMyDlg * pMyDlg;
At some suitable point in the initialisation of your application
(creation of the main frame window maybe) you can use "new" to
create/initialise the pointer with your dialog:
pMyDlg = new CMyDlg;
Then you can create the modeless dialog:
pMyDlg->Create( mydialogid );
On close down you need to use DestroyWindow to get rid of the modeless
dialog:
pMyDlg->DestroyWindow();
And you need to clean up the allocation of the dialog class:
delete pMyDlg;
Dave
----
Address is altered to discourage junk mail.
Remove ".---" for the real address.