Changeset 6650 for trunk/src/user32
- Timestamp:
- Sep 5, 2001, 3:54:53 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dcscroll.cpp
r5899 r6650 1 #include <os2win.h> 2 1 /* $Id: dcscroll.cpp,v 1.2 2001-09-05 13:53:50 bird Exp $ */ 3 2 /* 4 3 * ScrollDC implementation 5 * 4 * 6 5 * Ported from Wine (windows\scroll.c) 7 6 * Fixes for clip rectangles & adaption for Odin (SvL) 8 7 * 9 8 * Copyright David W. Metcalfe, 1993 10 * 9 * Alex Korobka 1995,1996 11 10 * 12 11 * 13 12 */ 13 14 #include <os2win.h> 14 15 15 16 //****************************************************************************** … … 24 25 25 26 dprintf(("USER32: ScrollDC %04x %d,%d hrgnUpdate=%04x rcUpdate = %p cliprc = (%d,%d-%d,%d), rc=(%d,%d-%d,%d)", 26 hdc, dx, dy, hrgnUpdate, rcUpdate, 27 28 27 hdc, dx, dy, hrgnUpdate, rcUpdate, 28 prLClip ? prLClip->left : 0, prLClip ? prLClip->top : 0, prLClip ? prLClip->right : 0, prLClip ? prLClip->bottom : 0, 29 rc ? rc->left : 0, rc ? rc->top : 0, rc ? rc->right : 0, rc ? rc->bottom : 0 )); 29 30 30 31 if ( !hdc ) return FALSE; … … 33 34 34 35 if ( rc ) 35 36 rect = *rc; 36 37 else /* maybe we should just return FALSE? */ 37 38 { 38 39 DebugInt3(); 39 40 GetClipBox( hdc, &rect ); 40 41 } 41 42 … … 46 47 rClip = *prLClip; 47 48 LPtoDP( hdc, (LPPOINT)&rClip, 2 ); 48 49 IntersectRect( &rClip, &rect, &rClip ); 49 50 } 50 51 else … … 74 75 75 76 /* copy bits */ 76 77 77 78 DPtoLP( hdc, (LPPOINT)&rSrc, 2 ); 78 79 DPtoLP( hdc, &src, 1 ); … … 103 104 104 105 if( rcUpdate ) 105 106 106 { 107 GetRgnBox( hrgn, rcUpdate ); 107 108 108 109 110 109 /* Put the rcUpdate in logical coordinate */ 110 DPtoLP( hdc, (LPPOINT)rcUpdate, 2 ); 111 } 111 112 if (!hrgnUpdate) DeleteObject( hrgn ); 112 113 DeleteObject( hrgn2 ); -
trunk/src/user32/initterm.cpp
r6467 r6650 1 /* $Id: initterm.cpp,v 1.33 2001-09-05 13:53:50 bird Exp $ */ 1 2 /* 2 3 * USER32 DLL entry point … … 41 42 #include <initdll.h> 42 43 43 #define DBG_LOCALLOG 44 #define DBG_LOCALLOG DBG_initterm 44 45 #include "dbglocal.h" 45 46 -
trunk/src/user32/inituser32.cpp
r6467 r6650 1 /* $Id: inituser32.cpp,v 1.5 2001-09-05 13:53:50 bird Exp $ */ 1 2 /* 2 3 * USER32 DLL entry point … … 46 47 #include <initdll.h> 47 48 48 #define DBG_LOCALLOG 49 #define DBG_LOCALLOG DBG_initterm 49 50 #include "dbglocal.h" 50 51 … … 116 117 case 1 : 117 118 if(hInstanceUser32) { 118 119 UnregisterLxDll(hInstanceUser32); 119 120 } 120 121 break; -
trunk/src/user32/oldnls32.cpp
r5496 r6650 1 /* 2 winnls32.cpp 3 1 /* $Id: oldnls32.cpp,v 1.2 2001-09-05 13:53:50 bird Exp $ */ 2 /* 3 winnls32.cpp 4 4 5 */ 5 6 … … 11 12 12 13 /* 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 14 BOOL IMPGetIME(hwnd, lpimepro) 15 16 Get Current IME Information 17 (HWND, InstallDate, Version, Description, FileName, Options on start...) 18 19 to invoke: 20 hnwd ... NULL 21 result: 22 not 0 ... success (infomation will be stored to lpimepro) 23 0 ... failure 24 25 see also: 26 ImmGetDefaultIMEWnd 27 ImmGetDescription 28 ImmGetIMEFileName 29 ImmGetProperty 29 30 */ 30 31 … … 32 33 { 33 34 #ifdef DEBUG 34 35 #endif 36 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 37 35 dprintf(("USER32: IMPGetIMEA not implemented\n")); 36 #endif 37 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 38 return FALSE; 38 39 } 39 40 … … 41 42 { 42 43 #ifdef DEBUG 43 44 #endif 45 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 46 47 } 48 49 50 /* 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 44 dprintf(("USER32: IMPGetIMEW not implemented\n")); 45 #endif 46 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 47 return FALSE; 48 } 49 50 51 /* 52 BOOL IMPQueryIME(lpimepro) 53 54 Get(Enum) IMEs Information 55 (HWND, InstallDate, Version, Description, FileName, Options on start...) 56 57 to invoke: 58 first : lpimepro->szName[0] = 0 59 next to last : (must not modify any contents in lpimepro) 60 61 result: 62 not 0 ... success 63 lpimepro->hWnd ... HANDLE to the IME window (if loaded) 64 or NULL(if not) 65 0 ... failure, or end of list 66 67 see also: 68 ImmGetDefaultIMEWnd 69 ImmGetDescription 70 ImmGetIMEFileName 71 ImmGetProperty 71 72 */ 72 73 … … 74 75 { 75 76 #ifdef DEBUG 76 77 #endif 78 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 79 77 dprintf(("USER32: IMPQueryIMEA not implemented\n")); 78 #endif 79 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 80 return FALSE; 80 81 } 81 82 … … 83 84 { 84 85 #ifdef DEBUG 85 86 #endif 87 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 88 89 } 90 91 92 /* 93 94 95 96 97 98 99 100 101 102 103 104 105 86 dprintf(("USER32: IMPQueryIMEW not implemented\n")); 87 #endif 88 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 89 return FALSE; 90 } 91 92 93 /* 94 BOOL IMPSetIME(hwnd, lpimepro) 95 96 Switch active IME 97 98 to invoke: 99 hwnd = NULL 100 lpimepro = IME to switch 101 result: 102 not 0 ... success 103 0 ... failure 104 105 see also: 106 ImmAssociateContext 106 107 */ 107 108 … … 109 110 { 110 111 #ifdef DEBUG 111 112 #endif 113 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 114 112 dprintf(("USER32: IMPSetIMEA not implemented\n")); 113 #endif 114 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 115 return FALSE; 115 116 } 116 117 … … 118 119 { 119 120 #ifdef DEBUG 120 121 #endif 122 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 123 124 } 125 126 127 /* 128 129 130 131 132 133 134 135 136 137 138 121 dprintf(("USER32: IMPSetIMEW not implemented\n")); 122 #endif 123 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 124 return FALSE; 125 } 126 127 128 /* 129 UINT WINNLSGetIMEHotkey(hwnd) 130 131 Query Virtual Key code to open the IME 132 133 to invoke: 134 hnwd ... HANDLE to the IME window 135 result: 136 Virtual Key code, or NULL 137 138 see also: 139 ImmSimulateHotKey 139 140 */ 140 141 … … 142 143 { 143 144 #ifdef DEBUG 144 145 #endif 146 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 147 148 } 149 150 151 /* 152 153 154 155 156 157 158 159 160 161 162 163 164 165 145 dprintf(("USER32: WINNLSGetIMEHotKey not implemented\n")); 146 #endif 147 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 148 return (UINT)NULL; 149 } 150 151 152 /* 153 BOOL WINNLSEnableIME(hwnd, bool) 154 155 make IME open/close 156 157 to invoke: 158 hwnd ... NULL 159 bool ... TRUE (open) or FALSE (close) 160 result: 161 previous state 162 163 see also: 164 ImmGetOpenStatus 165 ImmSetOpenStatus 166 ImmSimulateHotKey 166 167 */ 167 168 … … 169 170 { 170 171 #ifdef DEBUG 171 172 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 173 #endif 174 175 } 176 177 178 /* 179 180 181 182 183 184 185 186 187 188 189 190 172 dprintf(("USER32: WINNLSEnableIME not implemented\n")); 173 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 174 #endif 175 return FALSE; 176 } 177 178 179 /* 180 BOOL WINNLSGetEnableStatus(hwnd) 181 182 Query IME open/close 183 184 to invoke: 185 hwnd ... NULL 186 result: 187 not 0 ... open 188 0 ... close 189 190 see also: 191 ImmGetOpenStatus 191 192 */ 192 193 … … 194 195 { 195 196 #ifdef DEBUG 196 197 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 198 #endif 199 200 } 201 202 203 /* 204 197 dprintf(("USER32: WINNLSGetEnableStatus not implemented\n")); 198 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 199 #endif 200 return FALSE; 201 } 202 203 204 /* 205 LRESULT WINAPI SendIMEMessageEx(hwnd, lparam) 205 206 */ 206 207 … … 209 210 { 210 211 #ifdef DEBUG 211 212 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 213 #endif 214 212 dprintf(("USER32: SendIMEMessageExA not implemented\n")); 213 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 214 #endif 215 return (LRESULT)0; 215 216 } 216 217 … … 218 219 { 219 220 #ifdef DEBUG 220 221 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 222 #endif 223 224 } 225 221 dprintf(("USER32: SendIMEMessageExW not implemented\n")); 222 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 223 #endif 224 return (LRESULT)0; 225 } 226 -
trunk/src/user32/wsprintf.cpp
r6375 r6650 1 /* $Id: wsprintf.cpp,v 1.11 2001-09-05 13:54:53 bird Exp $ */ 1 2 /* 2 3 * wsprintf functions … … 13 14 #include <misc.h> 14 15 15 #define DBG_LOCALLOG 16 #define DBG_LOCALLOG DBG_wsprintf 16 17 #include "dbglocal.h" 17 18
Note:
See TracChangeset
for help on using the changeset viewer.