home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / windows / winclass.zip / WINSTD.H < prev   
C/C++ Source or Header  |  1991-03-15  |  937b  |  33 lines

  1. #if !defined(WINSTD_H)
  2. #include <windows.h>
  3. #include "winbase.h"
  4.  
  5. class StdRegClass : public WindowRegClass {
  6. public:
  7.     StdRegClass(LPSTR ClassName, HANDLE hInst, HANDLE hPrev,
  8.                     long (FAR PASCAL *proc)(HWND, WORD, WORD, LONG ),
  9.                     LPSTR menu = NULL, LPSTR icon = IDI_APPLICATION,
  10.                     LPSTR cursorname = IDC_ARROW)
  11.                     :WindowRegClass(ClassName, hInst, hPrev,proc) {
  12.         SetClassMenu(menu);
  13.         SetClassIcon(icon);
  14.         SetClassCursor(cursorname);
  15.         Register();
  16.     }
  17. };
  18.  
  19.  
  20. class StdWin: public Window {
  21. public:
  22.     StdWin(LPSTR clsname, LPSTR winname, HANDLE hinst)
  23.                                :Window(clsname,winname,hinst) {
  24.         SetWinStyle(WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN);
  25.         SetWinX(100);
  26.         SetWinY(50);
  27.         SetWinWidth(500);
  28.         SetWinHeight(300);
  29.     }
  30. };
  31. #define WINSTD_H
  32. #endif
  33.