Changeset 728 for trunk/src/user32/new/win32class.h
- Timestamp:
- Aug 28, 1999, 7:24:45 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32class.h
r724 r728 1 /* $Id: win32class.h,v 1. 5 1999-08-28 14:09:30 sandervlExp $ */1 /* $Id: win32class.h,v 1.6 1999-08-28 17:24:45 dengert Exp $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 15 15 { 16 16 public: 17 17 Win32WndClass(WNDCLASSEXA *wndclass, BOOL isUnicode = FALSE); 18 18 ~Win32WndClass(); 19 19 20 21 ULONG getClassLongW(int index)22 { 23 return getClassLongA(index, TRUE); 24 25 20 ULONG getClassLongA(int index, BOOL isUnicode = FALSE); 21 ULONG getClassLongW(int index) 22 { 23 return getClassLongA(index, TRUE); 24 }; 25 WORD getClassWord(int index); 26 26 27 28 ULONG setClassLongW(int index, LONG lNewVal)29 30 31 32 27 ULONG setClassLongA(int index, LONG lNewVal, BOOL isUnicode = FALSE); 28 ULONG setClassLongW(int index, LONG lNewVal) 29 { 30 return setClassLongA(index, lNewVal, TRUE); 31 } 32 WORD setClassWord(int index, WORD wNewVal); 33 33 34 ATOM getAtom() 35 36 34 ATOM getAtom() { return (ATOM) classAtom; }; 35 BOOL getClassInfo(WNDCLASSEXA *wndclass); 36 BOOL getClassInfo(WNDCLASSEXW *wndclass); 37 37 38 39 38 ULONG getClassName(LPSTR lpszClassName, ULONG cchClassName); 39 ULONG getClassName(LPWSTR lpszClassName, ULONG cchClassName); 40 40 41 WNDPROC getWindowProc() 42 LPSTR getMenuNameA(){ return menuNameA; };43 DWORD getExtraWndWords(){ return nrExtraWindowWords; };41 WNDPROC getWindowProc() { return windowProc; }; 42 LPSTR getMenuNameA() { return menuNameA; }; 43 DWORD getExtraWndWords() { return nrExtraWindowWords; }; 44 44 45 45 HICON getIcon() { return hIcon; }; 46 46 47 47 HBRUSH getBackgroundBrush() { return backgroundBrush; }; 48 ULONG getStyle() { return windowStyle; }; 48 49 49 50 void setMenuName(LPSTR newMenuName); 50 51 51 52 53 52 void IncreaseWindowCount() { cWindows++; }; 53 void DecreaseWindowCount() { cWindows--; }; 54 DWORD GetWindowCount() { return cWindows; }; 54 55 55 56 BOOL hasClassName(LPSTR classname, BOOL fUnicode = 0); 56 57 static void 57 58 static void UnregisterClassA(HINSTANCE hinst, LPSTR id); 58 59 59 60 static Win32WndClass *FindClass(HINSTANCE hinst, LPSTR id); … … 63 64 64 65 //Standard class words/longs 65 ULONG nrExtraClassWords;//GCL_CBCLSEXTRA66 ULONG nrExtraWindowWords;//GCL_CBWNDEXTRA67 HBRUSH backgroundBrush;//GCL_HBRBACKGROUND68 HCURSOR hCursor;//GCL_HCURSOR69 HICON hIcon;//GCL_HICON70 HINSTANCE hInstance;//GCL_HMODULE71 PCHAR menuNameA;//GCL_MENUNAME72 WCHAR *menuNameW; 73 ULONG windowStyle;//GCL_STYLE74 WNDPROC windowProc; 75 ULONG classAtom; 66 ULONG nrExtraClassWords; //GCL_CBCLSEXTRA 67 ULONG nrExtraWindowWords; //GCL_CBWNDEXTRA 68 HBRUSH backgroundBrush; //GCL_HBRBACKGROUND 69 HCURSOR hCursor; //GCL_HCURSOR 70 HICON hIcon; //GCL_HICON 71 HINSTANCE hInstance; //GCL_HMODULE 72 PCHAR menuNameA; //GCL_MENUNAME 73 WCHAR *menuNameW; //GCL_MENUNAME 74 ULONG windowStyle; //GCL_STYLE 75 WNDPROC windowProc; //GCL_WNDPROC 76 ULONG classAtom; //GCW_ATOM 76 77 77 78 PCHAR classNameA; 78 79 WCHAR *classNameW; 79 HICON 80 HICON hIconSm; 80 81 81 82 //User data class words/longs 82 ULONG 83 ULONG *userClassLong; 83 84 84 85 //nr of windows created with this class 85 86 ULONG cWindows; 86 87 87 88 static GenericObject *wndclasses; 88 89 };
Note:
See TracChangeset
for help on using the changeset viewer.