Changeset 3873 for trunk/src/user32/caret.cpp
- Timestamp:
- Jul 20, 2000, 8:08:13 PM (25 years ago)
- File:
-
- 1 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;
Note:
See TracChangeset
for help on using the changeset viewer.