|
Public Member Functions |
| virtual BOOL | OnWMMessage (UINT uMessage, WPARAM wParam, LPARAM lParam) |
| | Called for all WM_XXX messages.
|
|
virtual void | OnOk () |
| | Called when user clicks the Ok button.
|
|
virtual void | OnCancel () |
| | Called when user clicks the Cancel button.
|
| virtual BOOL | OnInitDlg (HWND hwndFocus) |
| | Called in response to WM_INITDIALOG.
|
| virtual BOOL | OnCommand (WPARAM wParam, LPARAM lParam) |
| | Called in response to WM_COMMAND.
|
| virtual void | EndDlg (int ret) |
| | Call this function to end the dialog box.
|
| virtual BOOL | OnIdle () |
| | Called when there are no windows messages.
|
|
virtual void | DestroyWindow () |
| | Called to destroy the window.
|
| virtual BOOL | OnKeyDown (int nVirtKey, DWORD dwKeyData) |
| | Called in response to a WM_KEYDOWN message.
|
| virtual BOOL | OnEndSession (BOOL bEndSession, DWORD fLogOff) |
| | Called in response to a WM_ENDSESSION message.
|
| BOOL | CreateDlg (HINSTANCE hInst, HWND hParent=NULL) |
| | Creates a windows dialog box.
|
| int | DoModal (HINSTANCE hInst, HWND hParent=NULL, int nCmdShow=SW_SHOWNORMAL) |
| | Runs a modal dialog box.
|
| void | AutoCenter (BOOL b) |
| | Specifies that the dialog box should auto center when created.
|
| void | CenterOnParent (BOOL b) |
| | Specifies if the dialog box should center on the parent window when created.
|
|
void | CenterWindow () |
| | Appropriately centers the dialog box.
|
|
| CWinDlg () |
| | Constructor.
|
|
virtual | ~CWinDlg () |
| | Destructor.
|
|
HINSTANCE | GetInstance () |
| | Returns the application module instance.
|
|
HWND | GetSafeHwnd () |
| | Returns the dialog box window handle.
|
|
HWND | GetParent () |
| | Returns the window handle of the parent window.
|
|
BOOL | IsWindow () |
| | Returns non-zero if there is a valid window handle.
|
| HWND | GetDlgItem (int id) |
| | Returns the window handle to the specified control.
|
| BOOL | ShowWindow (int nCmdShow=SW_SHOWNORMAL) |
| | Sets the dialog box show mode.
|
| BOOL | UpdateWindow () |
| | Sends a WM_PAINT message to the dialog box.
|
| BOOL | Invalidate () |
| | Invalidates the client area of the window forcing a redraw.
|
| BOOL | RedrawWindow (const RECT *pRect=NULL, HRGN hRgn=NULL, UINT uFlags=RDW_ERASE|RDW_INVALIDATE|RDW_ERASENOW|RDW_UPDATENOW|RDW_ALLCHILDREN) |
| | Updates the specified area of the dialog box window.
|
| BOOL | SetPos (HWND hWnd) |
| | Sets the windows position in the Z-Order.
|
| BOOL | SetPos (int x, int y) |
| | Sets the windows position.
|
| BOOL | SetForegroundWindow () |
| | Sets this window as the foreground window.
|
| HWND | SetFocus () |
| | Gives this window the input focus.
|
| BOOL | LoadAcceleratorTable (LPCTSTR pAccelRes) |
| | Loads the specified accelerator table.
|
|
BOOL | IsAccel () |
| | Returns non-zero if there is a valid accelerator table.
|
|
HACCEL | GetAccel () |
| | Returns a handle to the current accelerator table.
|
| void | SetInstance (HINSTANCE hInst) |
| | Sets the application module instance.
|
| void | SetDlgTemplate (LPCTSTR pRes) |
| | Sets the resource ID of the dialog box template to use.
|
|
LPCTSTR | GetDlgTemplate () |
| | Returns the current dialog box resource ID.
|
|
BOOL | IsRunning () |
| | Returns non-zero if a valid dialog box is currently being displayed.
|
Static Public Member Functions |
| static BOOL | ChooseColor (COLORREF *pCol, HWND hOwner=NULL, DWORD dwFlags=CC_ANYCOLOR|CC_FULLOPEN|CC_RGBINIT) |
| | Launches the Windows color picker.
|
| static BOOL | DoMessagePump (HWND hWnd=NULL, HACCEL hAccel=NULL) |
| | Pumps the Windows message queue.
|
| static void | CenterWindow (HWND hWnd, HWND hParent=NULL, LPRECT pRect=NULL) |
| | Centers the specified window.
|
| static BOOL CALLBACK | DlgProc (HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam) |
| | The main dialog box callback procedure.
|
| static BOOL | SetPos (HWND hWnd, int x, int y) |
This class encapsulates a windows dialog and provides basic functionality.