Changeset 819 for trunk/src/user32/new/win32wbase.h
- Timestamp:
- Sep 4, 1999, 7:56:41 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/new/win32wbase.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/win32wbase.h
r808 r819 1 /* $Id: win32wbase.h,v 1. 3 1999-09-03 15:09:45 sandervlExp $ */1 /* $Id: win32wbase.h,v 1.4 1999-09-04 17:56:41 dengert Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 17 17 18 18 #include <win32class.h> 19 #include "open32wbase.h" 19 20 #include <gen_object.h> 20 21 #include <win32wndchild.h> … … 31 32 #define CheckMagicDword(a) (a==WIN32PM_MAGIC) 32 33 33 #define WIN32APP_USERMSGBASE 0x100034 #define WIN32APP_USERMSGBASE 0x1000 34 35 35 36 typedef struct { … … 110 111 PRECT getWindowRect() { return &rectWindow; }; 111 112 void setClientRect(LONG left, LONG top, LONG right, LONG bottom) 112 { 113 rectClient.left = left; rectClient.top = top;114 rectClient.right = right; rectClient.bottom = bottom;115 };116 void setWindowRect(LONG left, LONG top, LONG right, LONG bottom)117 { 118 rectWindow.left = left; rectWindow.top = top;119 rectWindow.right = right; rectWindow.bottom = bottom;120 };113 { 114 rectClient.left = left; rectClient.top = top; 115 rectClient.right = right; rectClient.bottom = bottom; 116 }; 117 void setWindowRect(LONG left, LONG top, LONG right, LONG bottom) 118 { 119 rectWindow.left = left; rectWindow.top = top; 120 rectWindow.right = right; rectWindow.bottom = bottom; 121 }; 121 122 void setWindowRect(PRECT rect) { rectWindow = *rect; }; 122 123 … … 158 159 BOOL hasWindowName(LPSTR wndname, BOOL fUnicode = 0); 159 160 Win32WndClass *getClass() { return windowClass; }; 160 char *getWindowNameA() { return windowNameA; };161 char *getWindowNameA() { return windowNameA; }; 161 162 Win32BaseWindow *getOwner() { return owner; }; 162 163 … … 175 176 static HWND Win32ToOS2Handle(HWND hwnd) 176 177 { 177 Win32BaseWindow *window = GetWindowFromHandle(hwnd);178 179 if(window) {180 return window->getOS2WindowHandle();181 }182 else return hwnd; //OS/2 window handle 178 Win32BaseWindow *window = GetWindowFromHandle(hwnd); 179 180 if(window) { 181 return window->getOS2WindowHandle(); 182 } 183 else return hwnd; //OS/2 window handle 183 184 } 184 185 185 186 static HWND OS2ToWin32Handle(HWND hwnd) 186 187 { 187 Win32BaseWindow *window = GetWindowFromOS2Handle(hwnd);188 189 if(window) {190 return window->getWindowHandle();191 }192 else return hwnd; //OS/2 window handle188 Win32BaseWindow *window = GetWindowFromOS2Handle(hwnd); 189 190 if(window) { 191 return window->getWindowHandle(); 192 } 193 else return hwnd; //OS/2 window handle 193 194 } 194 195 … … 265 266 } 266 267 #endif 268 269 public: 270 void SetFakeOpen32() { WinSetDAXData (OS2Hwnd, &fakeWinBase); } 271 void RemoveFakeOpen32() { WinSetDAXData (OS2Hwnd, NULL); } 272 273 fakeOpen32WinBaseClass fakeWinBase; 267 274 }; 268 275
Note:
See TracChangeset
for help on using the changeset viewer.
