| Line |   | 
|---|
| 1 | /* $Id: wndclass.h,v 1.4 1999-08-11 22:54:37 phaller Exp $ */
 | 
|---|
| 2 | 
 | 
|---|
| 3 | /*
 | 
|---|
| 4 |  *
 | 
|---|
| 5 |  * Project Odin Software License can be found in LICENSE.TXT
 | 
|---|
| 6 |  *
 | 
|---|
| 7 |  */
 | 
|---|
| 8 | /*
 | 
|---|
| 9 |  * Win32 window class for OS/2
 | 
|---|
| 10 |  *
 | 
|---|
| 11 |  * Copyright 1998 Sander van Leeuwen
 | 
|---|
| 12 |  *
 | 
|---|
| 13 |  */
 | 
|---|
| 14 | #ifndef __WNDCLASS_H__
 | 
|---|
| 15 | #define __WNDCLASS_H__
 | 
|---|
| 16 | 
 | 
|---|
| 17 | #ifdef _OS2WIN_H
 | 
|---|
| 18 | #include <winos2def.h>
 | 
|---|
| 19 | #endif
 | 
|---|
| 20 | 
 | 
|---|
| 21 | //SvL: 18-7-'98, Registers system window classes (button, listbox etc etc)
 | 
|---|
| 22 | void WINAPI RegisterSystemClasses(HMODULE hModule);
 | 
|---|
| 23 | void WINAPI UnregisterSystemClasses(void);
 | 
|---|
| 24 | 
 | 
|---|
| 25 | class Win32WindowClass
 | 
|---|
| 26 | {
 | 
|---|
| 27 | public:
 | 
|---|
| 28 |         Win32WindowClass(WNDPROC pUserCallback, LPSTR id, HINSTANCE hinst);
 | 
|---|
| 29 |        ~Win32WindowClass();
 | 
|---|
| 30 | 
 | 
|---|
| 31 | static WNDPROC_O32 GetOS2ClassCallback();
 | 
|---|
| 32 |  static    WNDPROC GetClassCallback(HINSTANCE hinst, LPSTR id);
 | 
|---|
| 33 |  static    WNDPROC GetClassCallback(LPSTR id);
 | 
|---|
| 34 |  static       void UnregisterClass(HINSTANCE hinst, LPSTR id);
 | 
|---|
| 35 | 
 | 
|---|
| 36 |  static Win32WindowClass *FindClass(LPSTR id);
 | 
|---|
| 37 | 
 | 
|---|
| 38 |            WNDPROC GetWinCallback() { return pWinCallback; };
 | 
|---|
| 39 |               void SetWinCallback(WNDPROC newcallback)
 | 
|---|
| 40 |               {
 | 
|---|
| 41 |                 pWinCallback = newcallback;
 | 
|---|
| 42 |               };
 | 
|---|
| 43 | 
 | 
|---|
| 44 | private:
 | 
|---|
| 45 | 
 | 
|---|
| 46 |  WNDPROC        pWinCallback;
 | 
|---|
| 47 | 
 | 
|---|
| 48 |  HINSTANCE      hinst;
 | 
|---|
| 49 | 
 | 
|---|
| 50 |  char           className[128];
 | 
|---|
| 51 |  DWORD          classAtom;
 | 
|---|
| 52 | 
 | 
|---|
| 53 |  static         Win32WindowClass  *wndclasses;
 | 
|---|
| 54 |                 Win32WindowClass  *next;
 | 
|---|
| 55 | };
 | 
|---|
| 56 | 
 | 
|---|
| 57 | #endif
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.