- Timestamp:
- Jul 20, 2000, 8:08:13 PM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/caret.cpp
r2804 r3873 1 /* $Id: caret.cpp,v 1.1 2 2000-02-16 14:34:04sandervl Exp $ */1 /* $Id: caret.cpp,v 1.13 2000-07-20 18:08:12 sandervl Exp $ */ 2 2 3 3 /* … … 13 13 #include <os2sel.h> 14 14 #include <stdlib.h> 15 #include "win32type.h" 15 #include <win32type.h> 16 #include <win32api.h> 16 17 #include <winconst.h> 17 18 #include <wprocess.h> … … 62 63 wnd->SetFakeOpen32(); 63 64 64 rc = _O32_CreateCaret (wnd->getOS2WindowHandle(), hBmp, width, height);65 rc = O32_CreateCaret (wnd->getOS2WindowHandle(), hBmp, width, height); 65 66 if (rc) 66 67 { … … 98 99 BOOL rc; 99 100 100 dprintf(("USER32: SetCaretBlinkTime"));101 dprintf(("USER32: SetCaretBlinkTime %d ms", mSecs)); 101 102 102 103 rc = _SetCaretBlinkTime (mSecs); … … 123 124 POINTL caretPos = { x, y }; 124 125 125 dprintf(("USER32: SetCaretPos"));126 dprintf(("USER32: SetCaretPos (%d,%d)", x, y)); 126 127 127 128 rc = WinQueryCursorInfo (HWND_DESKTOP, &cursorInfo); … … 138 139 if (!pHps) 139 140 { 140 _O32_SetLastError(ERROR_INTERNAL_ERROR);141 SetLastError(ERROR_INTERNAL_ERROR); 141 142 return FALSE; 142 143 } … … 151 152 else 152 153 { 153 long height = wnd->get ClientHeight();154 long height = wnd->getWindowHeight(); 154 155 caretPos.y = height - caretPos.y - 1; 155 156 xNew = caretPos.x; … … 166 167 if (rc == FALSE) 167 168 { 168 _O32_SetLastError (ERROR_INVALID_PARAMETER);169 SetLastError (ERROR_INVALID_PARAMETER); 169 170 result = FALSE; 170 171 } … … 199 200 cursorInfo.x = caretPos.x; 200 201 cursorInfo.y = caretPos.y; 201 } else { 202 long height = wnd->getClientHeight(); 202 } 203 else { 204 long height = wnd->getWindowHeight(); 203 205 caretPos.y += cursorInfo.cy; 204 206 cursorInfo.y = height - caretPos.y - 1; -
trunk/src/user32/oslibmsgtranslate.cpp
r3747 r3873 1 /* $Id: oslibmsgtranslate.cpp,v 1.3 5 2000-06-23 19:04:11sandervl Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.36 2000-07-20 18:08:12 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 251 251 Win32BaseWindow *wndAfter = Win32BaseWindow::GetWindowFromOS2Handle(pswp->hwndInsertBehind); 252 252 if(wndAfter) 253 thdb->wp.hwndInsertAfter = wndAfter->getWindowHandle(); 253 thdb->wp.hwndInsertAfter = wndAfter->getWindowHandle(); 254 else thdb->wp.hwndInsertAfter = HWND_TOP_W; 254 255 } 255 256 } -
trunk/src/user32/pmwindow.cpp
r3864 r3873 1 /* $Id: pmwindow.cpp,v 1. 99 2000-07-19 19:05:24sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.100 2000-07-20 18:08:12 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 293 293 { 294 294 Win32BaseWindow *wndAfter = Win32BaseWindow::GetWindowFromOS2Handle(pswp->hwndInsertBehind); 295 if(wndAfter) wp.hwndInsertAfter = wndAfter->getWindowHandle(); 295 if(wndAfter) { 296 wp.hwndInsertAfter = wndAfter->getWindowHandle(); 297 } 298 else wp.hwndInsertAfter = HWND_TOP_W; 296 299 } 297 300 … … 363 366 } 364 367 else OSLibMapSWPtoWINDOWPOS(pswp, &wp, &swpOld, OSLibQueryScreenHeight(), 0, 0, hwnd); 368 369 wp.hwnd = win32wnd->getWindowHandle(); 370 if ((pswp->fl & SWP_ZORDER) && (pswp->hwndInsertBehind > HWND_BOTTOM)) 371 { 372 Win32BaseWindow *wndAfter = Win32BaseWindow::GetWindowFromOS2Handle(pswp->hwndInsertBehind); 373 if(wndAfter) { 374 wp.hwndInsertAfter = wndAfter->getWindowHandle(); 375 } 376 else wp.hwndInsertAfter = HWND_TOP_W; 377 } 365 378 366 379 if(pswp->fl & SWP_ACTIVATE) -
trunk/src/user32/win32wbase.cpp
r3853 r3873 1 /* $Id: win32wbase.cpp,v 1.20 7 2000-07-18 18:35:39sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.208 2000-07-20 18:08:13 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2077 2077 2078 2078 dprintf(("ShowWindow %x %x", getWindowHandle(), nCmdShow)); 2079 if(getWindowHandle() == 0x680000 30 && nCmdShow == 0) {2079 if(getWindowHandle() == 0x6800001d && nCmdShow == 1) { 2080 2080 rc = 0; 2081 2081 } … … 2133 2133 case SW_SHOWDEFAULT: /* FIXME: should have its own handler */ 2134 2134 case SW_RESTORE: 2135 //TODO: WIN_RESTORE_MAX flag!!!!!!!!!!!!!! 2135 2136 swp |= SWP_SHOWWINDOW | SWP_FRAMECHANGED; 2136 2137 … … 2324 2325 } 2325 2326 //****************************************************************************** 2327 //TODO: Check how this api really works in NT 2328 // This implemention doesn't make a lot of sense to me (compared to the 2329 // description in the SDK docs) 2326 2330 //****************************************************************************** 2327 2331 BOOL Win32BaseWindow::SetWindowPlacement(WINDOWPLACEMENT *wndpl) … … 2348 2352 } 2349 2353 else { 2350 SetWindowPos(0, windowpos.rcNormalPosition.left, windowpos.rcNormalPosition.top, 2354 //Papyrus calls this api with rcNormalPosition set to 0 2355 //So the rcNormalPosition should probably not affect the current position 2356 #if 0 2357 SetWindowPos(0, windowpos.rcNormalPosition.left, windowpos.rcNormalPosition.top, 2351 2358 windowpos.rcNormalPosition.right - windowpos.rcNormalPosition.left, 2352 2359 windowpos.rcNormalPosition.bottom - windowpos.rcNormalPosition.top, 2353 2360 SWP_NOZORDER | SWP_NOACTIVATE ); 2361 #endif 2354 2362 } 2355 2363 ShowWindow(wndpl->showCmd);
Note:
See TracChangeset
for help on using the changeset viewer.