Originally Posted by
Alex F
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.