home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
source
/
cppwin10
/
cdlg.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-11
|
852b
|
43 lines
/***
Class Dlg Header file.
This class handles Modal dialogs.
Revisions:
10/24/90 KM Initial coding.
***/
#ifndef CDlg_INC
#define CDlg_INC
class CDlg {
public:
static CDlg *pCurDlg;
virtual BOOL FAR PASCAL Go(HWND hDlg, unsigned Message,
WORD wParam, LONG lParam);
virtual BOOL DoInitDialog(WORD nFocusID, LONG lParam)
{ return FALSE; }
virtual BOOL DoCommand(WORD ControlID, LONG lParam)
{ return FALSE; }
virtual BOOL DoDefault(unsigned Message, WORD wParam, LONG lParam)
{ return FALSE; }
int DoDialog(HANDLE hInst, LPSTR lpDlgName, HWND hParent, LONG lParam);
void SetDlgWnd(HWND hWnd)
{ hDialog = hWnd; }
// Center the dialog in the center of the screen
void Center(void);
protected:
HWND hParentWnd;
HWND hDialog;
private:
};
#endif