Place a dialog in another
-
Hi all, Can anyone suggest how to place a dialog in an other dialog just llike placing some control in a dialog. Thanks
-
Hi all, Can anyone suggest how to place a dialog in an other dialog just llike placing some control in a dialog. Thanks
-
Hi all, Can anyone suggest how to place a dialog in an other dialog just llike placing some control in a dialog. Thanks
LRESULT DlgProc( HWND hWnd , UINT message , WPARAM wParam , LPARAM lParam ) { switch( message ) { case WM_COMMAND : //process commnads here break ; case WM_CLOSE : ::PostQuitMessage(0); break ; } return ::DefWindowProc(hWnd , message , wParam , lParam ) ; } void CchiDlg::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID & 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout; HWND hWnd =::CreateDialog( 0 , MAKEINTRESOURCE(IDD_ABOUTBOX), this->GetSafeHwnd() , (DLGPROC)DlgProc) ; MSG msg ; while( ! GetMessage( &msg , 0 , 0 , 0 ) ) { ::TranslateMessage( &msg ) ; ::DispatchMessage( &msg ) ; }; ::ShowWindow( hWnd , SW_SHOW ) ; } else { CDialog::OnSysCommand(nID, lParam); } } //i dont know u r trying on win32 or mfc. //best wishes
-
Hi all, Can anyone suggest how to place a dialog in an other dialog just llike placing some control in a dialog. Thanks
can't you just browse the site ? here is an example i wrote[^]
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]
-
Hi all, Can anyone suggest how to place a dialog in an other dialog just llike placing some control in a dialog. Thanks