|
|
|
Name: BasicDialog Download: BasicDialog.zip What is it: A dialog based application.
Features:
The Code: The code maintains a global HWND to the dialog that is used as a form in the application. HWND g_hwndBasicDialog; //The basic dialog for the controlsIn the WM_CREATE message the commanbar height is retrieved and stored in a global variable. The 'IDD_BASICDIALOG' is then created as a child window of the MainWindow. If this creation is successful it is moved to fill the full Client space of the MainWindow. Following this it is shown and updated. nCBrHeight = CommandBar_Height(g_hwndCB);
When the 'IDD_BASICDIALOG' was created as a child window of the MainWindow it was given a WindowProc called BasicDlgProc. It is in this WndProc that all the Basic Dialog message processing is done.. //------------------------------------------------------ LRESULT lResult = TRUE; switch(msg) { case WM_COMMAND: default: return(FALSE); break; } UNREFERENCED_PARAMETER(wp); UNREFERENCED_PARAMETER(lp); return (lResult); } |
|
Feedback mailto:ppcdev@conduits.com |