home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
source
/
winclass
/
winstd.h
< prev
Wrap
C/C++ Source or Header
|
1991-03-15
|
937b
|
33 lines
#if !defined(WINSTD_H)
#include <windows.h>
#include "winbase.h"
class StdRegClass : public WindowRegClass {
public:
StdRegClass(LPSTR ClassName, HANDLE hInst, HANDLE hPrev,
long (FAR PASCAL *proc)(HWND, WORD, WORD, LONG ),
LPSTR menu = NULL, LPSTR icon = IDI_APPLICATION,
LPSTR cursorname = IDC_ARROW)
:WindowRegClass(ClassName, hInst, hPrev,proc) {
SetClassMenu(menu);
SetClassIcon(icon);
SetClassCursor(cursorname);
Register();
}
};
class StdWin: public Window {
public:
StdWin(LPSTR clsname, LPSTR winname, HANDLE hinst)
:Window(clsname,winname,hinst) {
SetWinStyle(WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN);
SetWinX(100);
SetWinY(50);
SetWinWidth(500);
SetWinHeight(300);
}
};
#define WINSTD_H
#endif