- Timestamp:
- Nov 11, 2000, 7:39:31 PM (25 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/USER32.DEF
r4558 r4585 1 ; $Id: USER32.DEF,v 1.4 0 2000-11-05 18:49:06sandervl Exp $1 ; $Id: USER32.DEF,v 1.41 2000-11-11 18:39:29 sandervl Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler … … 614 614 ChangeDisplaySettingsExW = _ChangeDisplaySettingsExW@20 @605 615 615 616 NotifyWinEvent = _NotifyWinEvent@16 @606 617 UnhookWinEvent = _UnhookWinEvent@4 @607 618 SetWinEventHook = _SetWinEventHook@28 @608 619 616 620 ;------------ 617 621 ; Windows 98 -
trunk/src/user32/user32.cpp
r4573 r4585 1 /* $Id: user32.cpp,v 1.8 7 2000-11-09 18:15:18sandervl Exp $ */1 /* $Id: user32.cpp,v 1.88 2000-11-11 18:39:29 sandervl Exp $ */ 2 2 3 3 /* … … 565 565 VOID WIN32API SetLastErrorEx(DWORD dwErrCode, DWORD dwType) 566 566 { 567 dprintf(("USER32: SetLastErrorEx\n"));567 dprintf(("USER32: SetLastErrorEx %x %x", dwErrCode, dwType)); 568 568 SetLastError(dwErrCode); 569 569 } … … 2659 2659 } 2660 2660 2661 2662 DWORD WIN32API NotifyWinEvent(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4) 2663 { 2664 dprintf(("USER32: NotifyWinEvent %x %x %x %x - empty stub!!", arg1, arg2, arg3, arg4)); 2665 2666 return 0; 2667 } 2668 2669 DWORD WIN32API UnhookWinEvent(DWORD arg1) 2670 { 2671 dprintf(("USER32: UnhookWinEvent %x - empty stub!!", arg1)); 2672 2673 return 0; 2674 } 2675 2676 DWORD WIN32API SetWinEventHook(DWORD arg1, DWORD arg2, DWORD arg3, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7) 2677 { 2678 dprintf(("USER32: SetWinEventHook %x %x %x %x %x %x %x - empty stub!!", arg1, arg2, arg3, arg4, arg5, arg6, arg7)); 2679 2680 return 0; 2681 } -
trunk/src/user32/win32class.cpp
r4194 r4585 1 /* $Id: win32class.cpp,v 1.1 8 2000-09-05 19:20:35sandervl Exp $ */1 /* $Id: win32class.cpp,v 1.19 2000-11-11 18:39:30 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 95 95 dprintf(("USER32: wndclass->lpszClassName %s\n", classNameA)); 96 96 else dprintf(("USER32: wndclass->lpszClassName %X\n", wndclass->lpszClassName)); 97 98 dprintf(("USER32: wndclass->classAtom %x", classAtom)); 97 99 98 100 if(HIWORD(wndclass->lpszMenuName)) {//convert string name identifier to numeric id -
trunk/src/user32/window.cpp
r4573 r4585 1 /* $Id: window.cpp,v 1.8 3 2000-11-09 18:15:22sandervl Exp $ */1 /* $Id: window.cpp,v 1.84 2000-11-11 18:39:31 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 57 57 return CreateMDIWindowA(className, windowName, style, x, y, width, height, parent, instance, (LPARAM)data); 58 58 59 #if 160 59 /* Find the class atom */ 61 60 if (!(classAtom = GlobalFindAtomA(className))) … … 75 74 className = tmpClass; 76 75 } 77 #else78 /* Find the class atom */79 if (!HIWORD(className) || !(classAtom = GlobalFindAtomA(className)))80 {81 if (!HIWORD(className))82 {83 sprintf(tmpClass,"#%d", (int) className);84 classAtom = GlobalFindAtomA(tmpClass);85 className = tmpClass;86 }87 if (!classAtom)88 {89 if (!HIWORD(className)) {90 dprintf(("CreateWindowEx32A: bad class name %04x\n", LOWORD(className)));91 }92 else dprintf(("CreateWindowEx32A: bad class name '%s'\n", className ));93 94 SetLastError(ERROR_INVALID_PARAMETER);95 return 0;96 }97 }98 #endif99 76 100 77 /* Create the window */ … … 165 142 ATOM classAtom; 166 143 CREATESTRUCTA cs; 167 char tmpClassA[20];168 144 WCHAR tmpClassW[20]; 169 145 … … 172 148 173 149 /* Find the class atom */ 174 if (!HIWORD(className) || !(classAtom = GlobalFindAtomW(className))) 175 { 176 if (!HIWORD(className)) 177 { 178 sprintf(tmpClassA,"#%d", (int) className); 179 AsciiToUnicode(tmpClassA, tmpClassW); 180 classAtom = GlobalFindAtomW(tmpClassW); 181 className = (LPCWSTR)tmpClassW; 182 } 183 if (!classAtom) 184 { 185 if (!HIWORD(className)) { 186 dprintf(("CreateWindowEx32W: bad class name %04x\n", LOWORD(className))); 187 } 188 else dprintf(("CreateWindowEx32W: bad class name ")); 189 190 SetLastError(ERROR_INVALID_PARAMETER); 191 return 0; 192 } 193 } 150 if (!(classAtom = GlobalFindAtomW(className))) 151 { 152 if (!HIWORD(className)) 153 dprintf(("CreateWindowEx32W: bad class name %04x",LOWORD(className))); 154 else 155 dprintf(("CreateWindowEx32W: bad class name '%x'", className)); 156 157 SetLastError(ERROR_INVALID_PARAMETER); 158 return 0; 159 } 160 194 161 if(HIWORD(className)) { 195 162 dprintf(("CreateWindowExW: class %ls name %x parent %x (%d,%d) (%d,%d), %x %x", className, windowName, parent, x, y, width, height, style, exStyle)); 196 163 } 197 164 else dprintf(("CreateWindowExW: class %d name %x parent %x (%d,%d) (%d,%d), %x %x", className, windowName, parent, x, y, width, height, style, exStyle)); 165 166 if (!HIWORD(className)) 167 { 168 wsprintfW(tmpClassW, (LPCWSTR)L"#%d", (int) className); 169 className = tmpClassW; 170 } 198 171 199 172 /* Create the window */
Note:
See TracChangeset
for help on using the changeset viewer.