Hi
i am developing an application in VS2005.
this dialog based application has four button
and four dialog box with same size . i want
when i push button in mainDialog it work like
a tab button and everytime show the dialog
according to pushbutton.
i,e i want the feature of tabcontrol but i do not
use tabcontrol.
thanks
For every child dialog, create resource with Border=None. Create every child dialog instance as modeless dialog with pointer to the main dialog: Create(dialog_id, pMainDlg).
Initially show first child dialog using ShowWindow(SW_SHOW), and move it to required position using MoveWindow(&rect). rect is required child position in the main dialog coordinates.
When another dialog should be activated, hide active child using ShowWindow(SW_HIDE), and activate new dialog using ShowWindow(SW_SHOW) and MoveWindow(&rect).
For every child dialog, override OnCancel and OnOK with empty functions. This prevents closing child dialog when user presses OK and Esc.
For every child dialog, create resource with Border=None. Create every child dialog instance as modeless dialog with pointer to the main dialog: Create(dialog_id, pMainDlg).
Initially show first child dialog using ShowWindow(SW_SHOW), and move it to required position using MoveWindow(&rect). rect is required child position in the main dialog coordinates.
When another dialog should be activated, hide active child using ShowWindow(SW_HIDE), and activate new dialog using ShowWindow(SW_SHOW) and MoveWindow(&rect).
For every child dialog, override OnCancel and OnOK with empty functions. This prevents closing child dialog when user presses OK and Esc.
thanks sir
plz can you give me sample demo or some code.
because i have no more idea about it.
One of my application works by this way, but it is too complicated to show it here. Just implement it exactly as I wrote. The idea is to create modeless dialog, which is shown in particular place of the parent dialog. This can be done using CDialog::Create, ShowWindow and MoveWindow functions. Once this is working, you can switch between different child dialogs, hiding active dialog and showing new one.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.