Changeset 2033 for trunk/src/user32
- Timestamp:
- Dec 9, 1999, 1:54:05 AM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 1 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/Makefile
r1971 r2033 1 # $Id: Makefile,v 1.4 6 1999-12-05 00:31:46 sandervl Exp $1 # $Id: Makefile,v 1.47 1999-12-09 00:53:36 sandervl Exp $ 2 2 3 3 # … … 42 42 winprop.obj wingdi.obj oslibgdi.obj winaccel.obj win32wbasepos.obj \ 43 43 oslibres.obj dummy.obj oslibmenu.obj dc.obj timer.obj \ 44 caret.obj resource.obj \44 caret.obj resource.obj winproc.obj \ 45 45 windlgmsg.obj windlg.obj win32wdesktop.obj 46 46 … … 129 129 pmwindow.obj: pmwindow.cpp win32class.h win32wbase.h win32dlg.h pmwindow.h win32wndchild.h $(PDWIN32_INCLUDE)\wprocess.h oslibgdi.h oslibwin.h dc.h 130 130 pmframe.obj: pmframe.cpp win32class.h win32wbase.h pmframe.h win32wndchild.h 131 win32class.obj: win32class.cpp win32class.h win32wbase.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h 132 win32wbase.obj: win32wbase.cpp win32class.h win32wbase.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h dc.h pmframe.h win32wdesktop.h controls.h winmouse.h 131 win32class.obj: win32class.cpp win32class.h win32wbase.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\win\winproc.h 132 win32wbase.obj: win32wbase.cpp win32class.h win32wbase.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h dc.h pmframe.h win32wdesktop.h controls.h winmouse.h $(PDWIN32_INCLUDE)\win\winproc.h 133 133 win32wbasepos.obj: win32wbasepos.cpp win32class.h win32wbase.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h dc.h pmframe.h win32wdesktop.h 134 134 win32wnd.obj: win32wnd.cpp win32class.h win32wbase.h win32wnd.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h oslibmenu.h 135 win32dlg.obj: win32dlg.cpp win32class.h win32wbase.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h oslibmsg.h controls.h 135 win32dlg.obj: win32dlg.cpp win32class.h win32wbase.h win32dlg.h gen_object.h $(PDWIN32_INCLUDE)\heapshared.h oslibwin.h win32wndchild.h oslibmsg.h controls.h $(PDWIN32_INCLUDE)\win\winproc.h 136 136 win32wndchild.obj: win32wndchild.cpp win32wndchild.h gen_object.h 137 137 win32wmdiclient.obj: win32wmdiclient.cpp win32wbase.h win32wmdiclient.h win32wmdichild.h gen_object.h … … 158 158 display.obj: display.cpp pmwindow.h 159 159 160 winproc.obj: winproc.cpp $(PDWIN32_INCLUDE)\win\winproc.h $(PDWIN32_INCLUDE)\heapcode.h 161 160 162 clean: 161 163 $(RM) *.obj *.lib *.dll *.map *.pch *.res *.lrf resource.asm *.lrf -
trunk/src/user32/win32class.cpp
r1606 r2033 1 /* $Id: win32class.cpp,v 1. 6 1999-11-05 09:16:22sandervl Exp $ */1 /* $Id: win32class.cpp,v 1.7 1999-12-09 00:53:36 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 23 23 #include <win32class.h> 24 24 #include <win32wnd.h> 25 #include <win\winproc.h> 25 26 26 27 static fDestroyAll = FALSE; … … 29 30 //Win32WndClass methods: 30 31 //****************************************************************************** 31 Win32WndClass::Win32WndClass(WNDCLASSEXA *wndclass, BOOL isUnicode) : GenericObject(&wndclasses, OBJTYPE_CLASS)32 { 33 this->isUnicode = isUnicode;32 Win32WndClass::Win32WndClass(WNDCLASSEXA *wndclass, BOOL fUnicode) : GenericObject(&wndclasses, OBJTYPE_CLASS) 33 { 34 isUnicode = fUnicode; 34 35 processId = 0; 35 36 … … 59 60 AsciiToUnicode(classNameA, classNameW); 60 61 } 61 62 62 classAtom = 0; 63 //SvL: If a system control has already be registered, use that atom instead 63 64 // of creating a new one 64 65 66 67 65 if(wndclass->style & CS_GLOBALCLASS) { 66 classAtom = GlobalFindAtomA(classNameA); 67 } 68 if(!classAtom) classAtom = GlobalAddAtomA(classNameA); 68 69 } 69 70 else { … … 73 74 } 74 75 if(!(wndclass->style & CS_GLOBALCLASS)) { 75 76 processId = GetCurrentProcess(); 76 77 } 77 78 menuNameA = 0; … … 105 106 106 107 windowStyle = wndclass->style; 107 windowProc = wndclass->lpfnWndProc;108 WINPROC_SetProc((HWINDOWPROC *)&windowProc, wndclass->lpfnWndProc, (isUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_CLASS); 108 109 109 110 //User data class words/longs … … 126 127 { 127 128 if(classNameA) { 128 129 dprintf(("Win32WndClass dtor, destroy class %s\n", classNameA)); 129 130 } 130 131 131 132 //SvL: Don't delete global classes 132 133 if(classNameA && !(windowStyle & CS_GLOBALCLASS)) { 133 GlobalDeleteAtom(classAtom); 134 } 134 GlobalDeleteAtom(classAtom); 135 } 136 137 WINPROC_FreeProc(windowProc, WIN_PROC_CLASS); 135 138 136 139 if(userClassLong) free(userClassLong); … … 158 161 } 159 162 if(fUnicode) { 160 161 162 163 if(classNameW) 164 return (lstrcmpW(classNameW, (LPWSTR)classname) == 0); 165 return FALSE; 163 166 } 164 167 else { 165 166 167 168 if(classNameA) 169 return (strcmp(classNameA, classname) == 0); 170 return FALSE; 168 171 } 169 172 } … … 234 237 { 235 238 if(windowStyle & CS_GLOBALCLASS) 236 239 return TRUE; 237 240 238 241 return curProcessId = processId; … … 251 254 wndclass->lpszClassName = (classNameA) ? (LPCTSTR)classNameA : (LPCTSTR)classAtom; 252 255 wndclass->style = windowStyle; 253 wndclass->lpfnWndProc = windowProc;256 wndclass->lpfnWndProc = (WNDPROC)getClassLongA(GCL_WNDPROC, FALSE); 254 257 wndclass->hIconSm = hIconSm; 255 258 return(TRUE); … … 268 271 wndclass->lpszClassName = (classNameW) ? (LPCWSTR)classNameW : (LPCWSTR)classAtom; 269 272 wndclass->style = windowStyle; 270 wndclass->lpfnWndProc = windowProc;273 wndclass->lpfnWndProc = (WNDPROC)getClassLongA(GCL_WNDPROC, TRUE); 271 274 wndclass->hIconSm = hIconSm; 272 275 return(TRUE); … … 335 338 //****************************************************************************** 336 339 //****************************************************************************** 337 ULONG Win32WndClass::getClassLongA(int index, BOOL isUnicode)340 ULONG Win32WndClass::getClassLongA(int index, BOOL fUnicode) 338 341 { 339 342 switch(index) { … … 355 358 return windowStyle; 356 359 case GCL_WNDPROC: 357 return (ULONG) windowProc;360 return (ULONG) WINPROC_GetProc(windowProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 358 361 case GCW_ATOM: //TODO: does this really happen in windows? 359 362 SetLastError(ERROR_INVALID_PARAMETER); … … 385 388 //TODO: What effects what immediately? 386 389 //****************************************************************************** 387 ULONG Win32WndClass::setClassLongA(int index, LONG lNewVal, BOOL isUnicode)390 ULONG Win32WndClass::setClassLongA(int index, LONG lNewVal, BOOL fUnicode) 388 391 { 389 392 ULONG rc; … … 423 426 break; 424 427 case GCL_WNDPROC: 425 rc = ( ULONG)windowProc;426 windowProc = (WNDPROC)lNewVal;428 rc = (LONG)WINPROC_GetProc(windowProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A ); 429 WINPROC_SetProc((HWINDOWPROC *)&windowProc, (WNDPROC)lNewVal, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_CLASS ); 427 430 break; 428 431 case GCW_ATOM: //TODO: does this really happen in windows? -
trunk/src/user32/win32class.h
r1762 r2033 1 /* $Id: win32class.h,v 1. 5 1999-11-17 17:04:54 cbratschiExp $ */1 /* $Id: win32class.h,v 1.6 1999-12-09 00:53:37 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Class Managment Code for OS/2 … … 16 16 { 17 17 public: 18 Win32WndClass(WNDCLASSEXA *wndclass, BOOL isUnicode = FALSE);18 Win32WndClass(WNDCLASSEXA *wndclass, BOOL fUnicode = FALSE); 19 19 ~Win32WndClass(); 20 20 21 ULONG getClassLongA(int index, BOOL isUnicode = FALSE);21 ULONG getClassLongA(int index, BOOL fUnicode = FALSE); 22 22 ULONG getClassLongW(int index) 23 23 { … … 26 26 WORD getClassWord(int index); 27 27 28 ULONG setClassLongA(int index, LONG lNewVal, BOOL isUnicode = FALSE);28 ULONG setClassLongA(int index, LONG lNewVal, BOOL fUnicode = FALSE); 29 29 ULONG setClassLongW(int index, LONG lNewVal) 30 30 { … … 56 56 DWORD GetWindowCount() { return cWindows; }; 57 57 58 BOOL hasClassName(LPSTR classname, BOOL fUnicode = 0);58 BOOL hasClassName(LPSTR classname, BOOL fUnicode = FALSE); 59 59 60 60 BOOL isAppClass(ULONG curProcessId); -
trunk/src/user32/win32dlg.cpp
r1762 r2033 1 /* $Id: win32dlg.cpp,v 1.3 5 1999-11-17 17:04:54 cbratschiExp $ */1 /* $Id: win32dlg.cpp,v 1.36 1999-12-09 00:53:37 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 18 18 #include <misc.h> 19 19 #include <win32dlg.h> 20 #include <win\winproc.h> 20 21 #include "oslibmsg.h" 21 22 #include "oslibwin.h" … … 174 175 175 176 fIsDialog = TRUE; 176 W in32DlgProc = dlgProc;177 WINPROC_SetProc((HWINDOWPROC *)&Win32DlgProc, (WNDPROC)dlgProc, (isUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_WINDOW); 177 178 178 179 this->tmpParam = param; … … 195 196 if (hUserFont) DeleteObject( hUserFont ); 196 197 if (hMenu) DestroyMenu( hMenu ); 198 199 WINPROC_FreeProc(Win32DlgProc, WIN_PROC_WINDOW); 197 200 } 198 201 //****************************************************************************** … … 1019 1022 //****************************************************************************** 1020 1023 //****************************************************************************** 1021 LONG Win32Dialog::SetWindowLongA(int index, ULONG value )1024 LONG Win32Dialog::SetWindowLongA(int index, ULONG value, BOOL fUnicode) 1022 1025 { 1023 1026 LONG oldval; … … 1027 1030 { 1028 1031 case DWL_DLGPROC: 1029 oldval = (LONG)Win32DlgProc;1030 W in32DlgProc = (DLGPROC)value;1032 oldval = (LONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 1033 WINPROC_SetProc((HWINDOWPROC *)&Win32DlgProc, (WNDPROC)value, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_WINDOW); 1031 1034 return oldval; 1032 1035 case DWL_MSGRESULT: … … 1044 1047 //****************************************************************************** 1045 1048 //****************************************************************************** 1046 ULONG Win32Dialog::GetWindowLongA(int index )1049 ULONG Win32Dialog::GetWindowLongA(int index, BOOL fUnicode) 1047 1050 { 1048 1051 dprintf2(("Win32Dialog::GetWindowLongA %x %d", getWindowHandle(), index)); … … 1050 1053 { 1051 1054 case DWL_DLGPROC: 1052 return (ULONG)Win32DlgProc;1055 return (ULONG)WINPROC_GetProc(Win32DlgProc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 1053 1056 case DWL_MSGRESULT: 1054 1057 return msgResult; -
trunk/src/user32/win32dlg.h
r1526 r2033 1 /* $Id: win32dlg.h,v 1. 7 1999-10-31 01:14:42sandervl Exp $ */1 /* $Id: win32dlg.h,v 1.8 1999-12-09 00:53:37 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 75 75 virtual ULONG MsgCreate(HWND hwndFrame, HWND hwndClient); 76 76 77 virtual LONG SetWindowLongA(int index, ULONG value );78 virtual ULONG GetWindowLongA(int index );77 virtual LONG SetWindowLongA(int index, ULONG value, BOOL fUnicode = FALSE); 78 virtual ULONG GetWindowLongA(int index, BOOL fUnicode = FALSE); 79 79 80 80 static ULONG GetDialogBaseUnits() { return MAKELONG(xBaseUnit, yBaseUnit); }; -
trunk/src/user32/win32wbase.cpp
r2016 r2033 1 /* $Id: win32wbase.cpp,v 1.10 7 1999-12-07 20:43:39sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.108 1999-12-09 00:53:37 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 268 268 //****************************************************************************** 269 269 //****************************************************************************** 270 BOOL Win32BaseWindow::IsWindowUnicode() 271 { 272 return (WINPROC_GetProcType(getWindowProc()) == WIN_PROC_32W); 273 } 274 //****************************************************************************** 275 //****************************************************************************** 270 276 BOOL Win32BaseWindow::CreateWindowExA(CREATESTRUCTA *cs, ATOM classAtom) 271 277 { … … 434 440 } 435 441 436 setWindowProc(windowClass->getWindowProc());442 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc(), (isUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_WINDOW); 437 443 hInstance = cs->hInstance; 438 444 dwStyle = cs->style & ~WS_VISIBLE; … … 627 633 /* Get class or window DC if needed */ 628 634 if(windowClass->getStyle() & CS_OWNDC) { 629 630 // 631 } 632 else 635 dprintf(("Class with CS_OWNDC style")); 636 // ownDC = GetWindowDC(getWindowHandle()); 637 } 638 else 633 639 if (windowClass->getStyle() & CS_PARENTDC) { 634 635 640 dprintf(("ERROR: Class with CS_PARENTDC style -> NOT IMPLEMENTED!")); 641 ownDC = 0; 636 642 } 637 643 else 638 644 if (windowClass->getStyle() & CS_CLASSDC) { 639 640 645 dprintf(("ERROR: Class with CS_CLASSDC style -> NOT IMPLEMENTED!")); 646 ownDC = 0; 641 647 } 642 648 /* Set the window menu */ … … 1519 1525 //****************************************************************************** 1520 1526 //****************************************************************************** 1521 LRESULT Win32BaseWindow::DefWindowProcA(UINT Msg, WPARAM wParam, LPARAM lParam, BOOL fReentered) 1522 { 1523 //Lotus Notes v5.0.1 calls SetWindowTextA for unicode static window -> calls DefWindowProcA 1524 if(IsUnicode() && !fReentered) { 1525 return DefWindowProcW(Msg, wParam, lParam); 1526 } 1527 LRESULT Win32BaseWindow::DefWindowProcA(UINT Msg, WPARAM wParam, LPARAM lParam) 1528 { 1527 1529 switch(Msg) 1528 1530 { … … 1777 1779 1778 1780 case WM_NOTIFYFORMAT: 1779 if (Is Unicode()) return NFR_UNICODE;1781 if (IsWindowUnicode()) return NFR_UNICODE; 1780 1782 else return NFR_ANSI; 1781 1783 … … 1851 1853 1852 1854 default: 1853 return DefWindowProcA(Msg, wParam, lParam , TRUE);1855 return DefWindowProcA(Msg, wParam, lParam); 1854 1856 } 1855 1857 } … … 2950 2952 BOOL Win32BaseWindow::SetWindowTextA(LPSTR lpsz) 2951 2953 { 2952 //hmm. Notes v5.0.1 creates static window with CreateWindowExW and calls this...2953 if(IsUnicode() && lpsz) {2954 LPWSTR lpWindowNameW = (LPWSTR)alloca((strlen(lpsz)+1)*sizeof(WCHAR));2955 lstrcpyAtoW(lpWindowNameW, lpsz);2956 2957 return SendInternalMessageW(WM_SETTEXT,0,(LPARAM)lpWindowNameW);2958 }2959 2954 return SendInternalMessageA(WM_SETTEXT,0,(LPARAM)lpsz); 2960 2955 } … … 2975 2970 //****************************************************************************** 2976 2971 //****************************************************************************** 2977 LONG Win32BaseWindow::SetWindowLongA(int index, ULONG value )2972 LONG Win32BaseWindow::SetWindowLongA(int index, ULONG value, BOOL fUnicode) 2978 2973 { 2979 2974 LONG oldval; … … 3018 3013 } 3019 3014 case GWL_WNDPROC: 3020 oldval = (LONG) getWindowProc();3021 setWindowProc((WNDPROC)value);3015 oldval = (LONG)WINPROC_GetProc(win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 3016 WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, (WNDPROC)value, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_WINDOW); 3022 3017 return oldval; 3023 3018 case GWL_HINSTANCE: … … 3048 3043 //****************************************************************************** 3049 3044 //****************************************************************************** 3050 ULONG Win32BaseWindow::GetWindowLongA(int index )3045 ULONG Win32BaseWindow::GetWindowLongA(int index, BOOL fUnicode) 3051 3046 { 3052 3047 ULONG value; … … 3060 3055 break; 3061 3056 case GWL_WNDPROC: 3062 value = ( ULONG)getWindowProc();3057 value = (LONG)WINPROC_GetProc(win32wndproc, (fUnicode) ? WIN_PROC_32W : WIN_PROC_32A); 3063 3058 break; 3064 3059 case GWL_HINSTANCE: -
trunk/src/user32/win32wbase.h
r2016 r2033 1 /* $Id: win32wbase.h,v 1.5 1 1999-12-07 20:43:40sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.52 1999-12-09 00:53:38 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 101 101 VOID updateWindowStyle(DWORD oldExStyle,DWORD oldStyle); 102 102 103 virtual LONG SetWindowLongA(int index, ULONG value );104 virtual ULONG GetWindowLongA(int index );103 virtual LONG SetWindowLongA(int index, ULONG value, BOOL fUnicode = FALSE); 104 virtual ULONG GetWindowLongA(int index, BOOL fUnicode = FALSE); 105 105 virtual WORD SetWindowWord(int index, WORD value); 106 106 virtual WORD GetWindowWord(int index); … … 185 185 BOOL IsWindowEnabled(); 186 186 BOOL IsWindowVisible(); 187 BOOL IsUnicode() { return isUnicode; }; 187 //Created with CreateWindowExA or ExW 188 BOOL IsUnicode() { return isUnicode; }; 189 //Window procedure type 190 BOOL IsWindowUnicode(); 191 188 192 BOOL GetWindowRect(PRECT pRect); 189 193 int GetWindowTextLength(); … … 216 220 static LRESULT BroadcastMessageW(int type, UINT msg, WPARAM wParam, LPARAM lParam); 217 221 218 LRESULT DefWindowProcA(UINT Msg, WPARAM wParam, LPARAM lParam , BOOL fReentered = FALSE);222 LRESULT DefWindowProcA(UINT Msg, WPARAM wParam, LPARAM lParam); 219 223 LRESULT DefWindowProcW(UINT msg, WPARAM wParam, LPARAM lParam); 220 224 -
trunk/src/user32/win32wmdichild.cpp
r1513 r2033 1 /* $Id: win32wmdichild.cpp,v 1. 9 1999-10-30 09:19:46sandervl Exp $ */1 /* $Id: win32wmdichild.cpp,v 1.10 1999-12-09 00:53:38 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Child Window Class for OS/2 … … 43 43 //****************************************************************************** 44 44 //****************************************************************************** 45 Win32MDIChildWindow::Win32MDIChildWindow(CREATESTRUCTA *lpCreateStructA, ATOM classAtom, BOOL isUnicode)45 Win32MDIChildWindow::Win32MDIChildWindow(CREATESTRUCTA *lpCreateStructA, ATOM classAtom, BOOL fUnicode) 46 46 : Win32BaseWindow(OBJTYPE_WINDOW) 47 47 { 48 this->isUnicode = isUnicode;48 isUnicode = fUnicode; 49 49 CreateWindowExA(lpCreateStructA, classAtom); 50 50 } -
trunk/src/user32/win32wmdichild.h
r1322 r2033 1 /* $Id: win32wmdichild.h,v 1. 3 1999-10-16 14:51:43sandervl Exp $ */1 /* $Id: win32wmdichild.h,v 1.4 1999-12-09 00:53:38 sandervl Exp $ */ 2 2 /* 3 3 * Win32 MDI Client Window Class for OS/2 … … 21 21 { 22 22 public: 23 Win32MDIChildWindow(CREATESTRUCTA *lpCreateStructA, ATOM classAtom, BOOL isUnicode);23 Win32MDIChildWindow(CREATESTRUCTA *lpCreateStructA, ATOM classAtom, BOOL fUnicode); 24 24 virtual ~Win32MDIChildWindow(); 25 25 -
trunk/src/user32/window.cpp
r1971 r2033 1 /* $Id: window.cpp,v 1.4 0 1999-12-05 00:31:49sandervl Exp $ */1 /* $Id: window.cpp,v 1.41 1999-12-09 00:53:38 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 956 956 957 957 if (!repaint) flags |= SWP_NOREDRAW; 958 dprintf(("MoveWindow: % 04x %d,%d %dx%d %d\n", hwnd, x, y, cx, cy, repaint ));958 dprintf(("MoveWindow: %x %d,%d %dx%d %d\n", hwnd, x, y, cx, cy, repaint )); 959 959 960 960 return SetWindowPos( hwnd, 0, x, y, cx, cy, flags ); … … 1277 1277 return 0; 1278 1278 } 1279 return window->Is Unicode();1279 return window->IsWindowUnicode(); 1280 1280 } 1281 1281 /***************************************************************************** -
trunk/src/user32/windowmsg.cpp
r1971 r2033 1 /* $Id: windowmsg.cpp,v 1. 8 1999-12-05 00:31:50sandervl Exp $ */1 /* $Id: windowmsg.cpp,v 1.9 1999-12-09 00:53:38 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window message APIs for OS/2 … … 930 930 * Call a window procedure, translating args from Ansi to Unicode. 931 931 */ 932 staticLRESULT WINPROC_CallProc32ATo32W( WNDPROC func, HWND hwnd,933 934 932 LRESULT WINPROC_CallProc32ATo32W( WNDPROC func, HWND hwnd, 933 UINT msg, WPARAM wParam, 934 LPARAM lParam ) 935 935 { 936 936 LRESULT result; … … 947 947 * Call a window procedure, translating args from Unicode to Ansi. 948 948 */ 949 staticLRESULT WINPROC_CallProc32WTo32A( WNDPROC func, HWND hwnd,950 951 949 LRESULT WINPROC_CallProc32WTo32A( WNDPROC func, HWND hwnd, 950 UINT msg, WPARAM wParam, 951 LPARAM lParam ) 952 952 { 953 953 LRESULT result; … … 958 958 WINPROC_UnmapMsg32WTo32A( hwnd, msg, wParam, lParam ); 959 959 return result; 960 }961 /**********************************************************************962 * CallWindowProc32A963 */964 LRESULT WIN32API CallWindowProcA(965 WNDPROC func, /* window procedure */966 HWND hwnd, /* target window */967 UINT msg, /* message */968 WPARAM wParam, /* message dependent parameter */969 LPARAM lParam /* message dependent parameter */970 )971 {972 973 Win32BaseWindow *window = Win32BaseWindow::GetWindowFromHandle(hwnd);974 if(!window) {975 dprintf(("CallWindowProcA, window %x not found", hwnd));976 // return func( hwnd, msg, wParam, lParam );977 return 0;978 }979 980 // dprintf(("CallWindowProcA(wndproc=%p,hwnd=%08x,msg=%08x,wp=%08x,lp=%08lx)",981 // func, hwnd, msg, wParam, lParam ));982 983 #if testing984 return func( hwnd, msg, wParam, lParam );985 #endif986 987 if(window->IsUnicode())988 return WINPROC_CallProc32ATo32W( func, hwnd, msg, wParam, lParam);989 else990 return func( hwnd, msg, wParam, lParam );991 }992 993 994 /**********************************************************************995 * CallWindowProc32W (USER32.19)996 */997 LRESULT WIN32API CallWindowProcW( WNDPROC func, HWND hwnd, UINT msg,998 WPARAM wParam, LPARAM lParam )999 {1000 Win32BaseWindow *window = Win32BaseWindow::GetWindowFromHandle(hwnd);1001 if(!window) {1002 dprintf(("CallWindowProcW, window %x not found", hwnd));1003 // return func( hwnd, msg, wParam, lParam );1004 return 0;1005 }1006 1007 // dprintf(("CallWindowProcW(wndproc=%p,hwnd=%08x,msg=%08x,wp=%08x,lp=%08lx)",1008 // func, hwnd, msg, wParam, lParam ));1009 1010 #if testing1011 return func( hwnd, msg, wParam, lParam );1012 #endif1013 1014 if(window->IsUnicode())1015 return func( hwnd, msg, wParam, lParam );1016 else1017 return WINPROC_CallProc32WTo32A( func, hwnd, msg, wParam, lParam);1018 960 } 1019 961 //****************************************************************************** -
trunk/src/user32/windowword.cpp
r1839 r2033 1 /* $Id: windowword.cpp,v 1. 4 1999-11-25 19:22:04sandervl Exp $ */1 /* $Id: windowword.cpp,v 1.5 1999-12-09 00:53:39 sandervl Exp $ */ 2 2 3 3 /* … … 62 62 if(window) 63 63 { 64 return window->SetWindowLongA(nIndex,lNewLong );64 return window->SetWindowLongA(nIndex,lNewLong, TRUE); 65 65 } 66 66 else … … 151 151 if(window) 152 152 { 153 return window->GetWindowLongA(nIndex );153 return window->GetWindowLongA(nIndex, TRUE); 154 154 } 155 155 else
Note:
See TracChangeset
for help on using the changeset viewer.