- Timestamp:
- Jan 12, 2002, 3:09:54 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/USER32.DEF
r7762 r7765 1 ; $Id: USER32.DEF,v 1.6 8 2002-01-12 09:55:51sandervl Exp $1 ; $Id: USER32.DEF,v 1.69 2002-01-12 14:09:30 sandervl Exp $ 2 2 3 3 LIBRARY USER32 INITINSTANCE TERMINSTANCE … … 698 698 699 699 _CreateFakeWindowEx@8 @2028 NONAME 700 _DestroyFakeWindow@4 @2035 NONAME 700 701 _checkOrigin@4 @2029 NONAME 701 702 -
trunk/src/user32/oslibwin.cpp
r7669 r7765 1 /* $Id: oslibwin.cpp,v 1.11 1 2001-12-22 12:12:06sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.112 2002-01-12 14:09:30 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 357 357 { 358 358 return WinDestroyWindow(hwnd); 359 } 360 //****************************************************************************** 361 //****************************************************************************** 362 BOOL OSLibWinQueryWindowClientRect(HWND hwndOS2, PRECT pRect) 363 { 364 BOOL rc; 365 RECTLOS2 rectl; 366 367 rc = WinQueryWindowRect(hwndOS2, (PRECTL)&rectl); 368 if(rc) { 369 pRect->left = 0; 370 pRect->right = rectl.xRight - rectl.xLeft; 371 pRect->top = 0; 372 pRect->bottom = rectl.yTop - rectl.yBottom; 373 } 374 else memset(pRect, 0, sizeof(RECT)); 375 return rc; 359 376 } 360 377 //****************************************************************************** -
trunk/src/user32/oslibwin.h
r7500 r7765 1 /* $Id: oslibwin.h,v 1.6 2 2001-11-30 13:53:50sandervl Exp $ */1 /* $Id: oslibwin.h,v 1.63 2002-01-12 14:09:31 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 74 74 HWND OSLibWinWindowFromID(HWND hwndParent,ULONG id); 75 75 BOOL OSLibWinSetFocus(HWND hwndDeskTop,HWND hwndNewFocus, BOOL activate); 76 ULONG OSLibGetWindowHeight(HWND hwnd); //for point transformation77 76 78 77 extern ULONG ScreenHeight, ScreenWidth; … … 239 238 #define RELATIVE_TO_SCREEN 1 240 239 BOOL OSLibWinQueryWindowRect(Win32BaseWindow *window, PRECT pRect, int RelativeTo = RELATIVE_TO_WINDOW); 240 ULONG OSLibGetWindowHeight(HWND hwnd); //for point transformation 241 242 BOOL OSLibWinQueryWindowClientRect(HWND hwnd, PRECT pRect); 243 241 244 BOOL OSLibWinCalcFrameRect(HWND hwnd, RECT *pRect, BOOL fClient); 242 245 BOOL OSLibGetMinMaxInfo(HWND hwndFrame, MINMAXINFO *pMinMax); -
trunk/src/user32/win32wbase.cpp
r7762 r7765 1 /* $Id: win32wbase.cpp,v 1.31 0 2002-01-12 09:55:51 sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.311 2002-01-12 14:09:31 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 111 111 : GenericObject(&windows, &critsect), ChildWindow(&critsect) 112 112 { 113 Init();113 Init(); 114 114 } 115 115 //****************************************************************************** … … 143 143 dwOldStyle = dwStyle; 144 144 dwExStyle = 0; 145 146 //We pretend this window has no parent and won't change size 147 //(dangerous assumption!!) 148 OSLibWinQueryWindowClientRect(OS2Hwnd, &rectClient); 149 rectWindow = rectClient; 150 151 fFakeWindow = TRUE; 145 152 } 146 153 //****************************************************************************** … … 149 156 : GenericObject(&windows, &critsect), ChildWindow(&critsect) 150 157 { 151 Init();152 this->isUnicode = isUnicode;153 CreateWindowExA(lpCreateStructA, classAtom);158 Init(); 159 this->isUnicode = isUnicode; 160 CreateWindowExA(lpCreateStructA, classAtom); 154 161 } 155 162 //****************************************************************************** … … 171 178 fVisibleRegionChanged = FALSE; 172 179 fEraseBkgndFlag = TRUE; 180 fFakeWindow = FALSE; 173 181 174 182 state = STATE_INIT; … … 315 323 if(owner && !fDestroyAll) { 316 324 RELEASE_WNDOBJ(owner); 317 }318 if(windowClass) {319 RELEASE_CLASSOBJ(windowClass);320 325 } 321 326 } -
trunk/src/user32/win32wbase.h
r7762 r7765 1 /* $Id: win32wbase.h,v 1.13 7 2002-01-12 09:55:52sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.138 2002-01-12 14:09:31 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 429 429 fMinMaxChange:1, //set when switching between min/max/restored state 430 430 fVisibleRegionChanged:1, //set when visible region has changed -> erase background must be sent during next BeginPaint 431 fEraseBkgndFlag:1; 431 fEraseBkgndFlag:1, 432 fFakeWindow:1; 432 433 433 434 ULONG state; -
trunk/src/user32/window.cpp
r7762 r7765 1 /* $Id: window.cpp,v 1.11 4 2002-01-12 09:55:52 sandervl Exp $ */1 /* $Id: window.cpp,v 1.115 2002-01-12 14:09:32 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 281 281 RELEASE_WNDOBJ(window); 282 282 return hwnd; 283 } 284 //****************************************************************************** 285 //****************************************************************************** 286 ODINFUNCTION1(BOOL, DestroyFakeWindow, 287 HWND, hwnd) 288 { 289 Win32BaseWindow *window; 290 291 window = Win32BaseWindow::GetWindowFromHandle(hwnd); 292 if(!window) { 293 dprintf(("DestroyFakeWindow, window %x not found", hwnd)); 294 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 295 return 0; 296 } 297 delete window; 298 return TRUE; 283 299 } 284 300 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.