Changeset 6650 for trunk/src/user32
- Timestamp:
- Sep 5, 2001, 3:54:53 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 5 edited
-
dcscroll.cpp (modified) (6 diffs)
-
initterm.cpp (modified) (2 diffs)
-
inituser32.cpp (modified) (3 diffs)
-
oldnls32.cpp (modified) (13 diffs)
-
wsprintf.cpp (modified) (2 diffs)
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 * Alex Korobka 1995,19969 * 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 prLClip ? prLClip->left : 0, prLClip ? prLClip->top : 0, prLClip ? prLClip->right : 0, prLClip ? prLClip->bottom : 0,28 rc ? rc->left : 0, rc ? rc->top : 0, rc ? rc->right : 0, rc ? rc->bottom : 0 ));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 rect = *rc;36 rect = *rc; 36 37 else /* maybe we should just return FALSE? */ 37 38 { 38 39 DebugInt3(); 39 GetClipBox( hdc, &rect );40 GetClipBox( hdc, &rect ); 40 41 } 41 42 … … 46 47 rClip = *prLClip; 47 48 LPtoDP( hdc, (LPPOINT)&rClip, 2 ); 48 IntersectRect( &rClip, &rect, &rClip );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 GetRgnBox( hrgn, rcUpdate );106 { 107 GetRgnBox( hrgn, rcUpdate ); 107 108 108 /* Put the rcUpdate in logical coordinate */109 DPtoLP( hdc, (LPPOINT)rcUpdate, 2 );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 DBG_initterm44 #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 DBG_initterm49 #define DBG_LOCALLOG DBG_initterm 49 50 #include "dbglocal.h" 50 51 … … 116 117 case 1 : 117 118 if(hInstanceUser32) { 118 UnregisterLxDll(hInstanceUser32);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 BOOL IMPGetIME(hwnd, lpimepro)14 15 Get Current IME Information16 (HWND, InstallDate, Version, Description, FileName, Options on start...)17 18 to invoke:19 hnwd ... NULL20 result:21 not 0 ... success (infomation will be stored to lpimepro)22 0 ... failure23 24 see also:25 ImmGetDefaultIMEWnd26 ImmGetDescription27 ImmGetIMEFileName28 ImmGetProperty14 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 dprintf(("USER32: IMPGetIMEA not implemented\n"));35 #endif 36 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 37 return FALSE;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 dprintf(("USER32: IMPGetIMEW not implemented\n"));44 #endif 45 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 46 return FALSE;47 } 48 49 50 /* 51 BOOL IMPQueryIME(lpimepro)52 53 Get(Enum) IMEs Information54 (HWND, InstallDate, Version, Description, FileName, Options on start...)55 56 to invoke:57 first : lpimepro->szName[0] = 058 next to last : (must not modify any contents in lpimepro)59 60 result:61 not 0 ... success62 lpimepro->hWnd ... HANDLE to the IME window (if loaded)63 or NULL(if not)64 0 ... failure, or end of list65 66 see also:67 ImmGetDefaultIMEWnd68 ImmGetDescription69 ImmGetIMEFileName70 ImmGetProperty44 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 dprintf(("USER32: IMPQueryIMEA not implemented\n"));77 #endif 78 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 79 return FALSE;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 dprintf(("USER32: IMPQueryIMEW not implemented\n"));86 #endif 87 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 88 return FALSE;89 } 90 91 92 /* 93 BOOL IMPSetIME(hwnd, lpimepro)94 95 Switch active IME96 97 to invoke:98 hwnd = NULL99 lpimepro = IME to switch100 result:101 not 0 ... success102 0 ... failure103 104 see also:105 ImmAssociateContext86 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 dprintf(("USER32: IMPSetIMEA not implemented\n"));112 #endif 113 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 114 return FALSE;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 dprintf(("USER32: IMPSetIMEW not implemented\n"));121 #endif 122 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 123 return FALSE;124 } 125 126 127 /* 128 UINT WINNLSGetIMEHotkey(hwnd)129 130 Query Virtual Key code to open the IME131 132 to invoke:133 hnwd ... HANDLE to the IME window134 result:135 Virtual Key code, or NULL136 137 see also:138 ImmSimulateHotKey121 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 dprintf(("USER32: WINNLSGetIMEHotKey not implemented\n"));145 #endif 146 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 147 return (UINT)NULL;148 } 149 150 151 /* 152 BOOL WINNLSEnableIME(hwnd, bool)153 154 make IME open/close155 156 to invoke:157 hwnd ... NULL158 bool ... TRUE (open) or FALSE (close)159 result:160 previous state161 162 see also:163 ImmGetOpenStatus164 ImmSetOpenStatus165 ImmSimulateHotKey145 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 dprintf(("USER32: WINNLSEnableIME not implemented\n"));172 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 173 #endif 174 return FALSE;175 } 176 177 178 /* 179 BOOL WINNLSGetEnableStatus(hwnd)180 181 Query IME open/close182 183 to invoke:184 hwnd ... NULL185 result:186 not 0 ... open187 0 ... close188 189 see also:190 ImmGetOpenStatus172 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 dprintf(("USER32: WINNLSGetEnableStatus not implemented\n"));197 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 198 #endif 199 return FALSE;200 } 201 202 203 /* 204 LRESULT WINAPI SendIMEMessageEx(hwnd, lparam)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 dprintf(("USER32: SendIMEMessageExA not implemented\n"));212 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 213 #endif 214 return (LRESULT)0;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 dprintf(("USER32: SendIMEMessageExW not implemented\n"));221 SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 222 #endif 223 return (LRESULT)0;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 DBG_wsprintf16 #define DBG_LOCALLOG DBG_wsprintf 16 17 #include "dbglocal.h" 17 18
Note:
See TracChangeset
for help on using the changeset viewer.
