- Timestamp:
- Jul 18, 1999, 4:56:37 PM (26 years ago)
- Location:
- trunk/src/user32/new
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/oslibwin.cpp
r328 r329 1 /* $Id: oslibwin.cpp,v 1.1 2 1999-07-18 14:39:35sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.13 1999-07-18 14:56:36 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 256 256 //****************************************************************************** 257 257 //****************************************************************************** 258 BOOL OSLibWinQueryUpdateRect(HWND hwnd, P RECTpRect)258 BOOL OSLibWinQueryUpdateRect(HWND hwnd, PVOID pRect) 259 259 { 260 260 BOOL rc; … … 263 263 rc = WinQueryUpdateRect(hwnd, (PRECTL)&rectl); 264 264 if(rc) { 265 MapOS2ToWin32Rectl(hwnd, &rectl,pRect);265 MapOS2ToWin32Rectl(hwnd, &rectl, (PRECT)pRect); 266 266 } 267 267 return rc; -
trunk/src/user32/new/oslibwin.h
r328 r329 1 /* $Id: oslibwin.h,v 1.1 1 1999-07-18 14:39:35sandervl Exp $ */1 /* $Id: oslibwin.h,v 1.12 1999-07-18 14:56:36 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 184 184 185 185 BOOL OSLibWinDestroyWindow(HWND hwnd); 186 BOOL OSLibWinQueryUpdateRect(HWND hwnd, P RECTpRect);186 BOOL OSLibWinQueryUpdateRect(HWND hwnd, PVOID pRect); 187 187 BOOL OSLibWinIsIconic(HWND hwnd); 188 188 BOOL OSLibWinSetActiveWindow(HWND hwnd); -
trunk/src/user32/new/pmwindow.cpp
r328 r329 1 /* $Id: pmwindow.cpp,v 1. 9 1999-07-18 14:39:35sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.10 1999-07-18 14:56:36 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 84 84 POSTMSG_PACKET *postmsg; 85 85 Win32Window *win32wnd; 86 ULONG magic;87 86 APIRET rc; 88 87 … … 90 89 SetWin32TIB(); 91 90 92 win32wnd = (Win32Window *)WinQueryWindowULong(hwnd, OFFSET_WIN32WNDPTR); 93 magic = WinQueryWindowULong(hwnd, OFFSET_WIN32PM_MAGIC); 94 95 if(msg != WM_CREATE && win32wnd == NULL && magic != WIN32PM_MAGIC) { 91 win32wnd = Win32Window::GetWindowFromOS2Handle(hwnd); 92 93 if(msg != WM_CREATE && win32wnd == NULL) { 96 94 dprintf(("Invalid win32wnd pointer for window %x!!", hwnd)); 97 95 goto RunDefWndProc; -
trunk/src/user32/new/user32.cpp
r327 r329 1 /* $Id: user32.cpp,v 1. 6 1999-07-18 13:57:47 cbratschiExp $ */1 /* $Id: user32.cpp,v 1.7 1999-07-18 14:56:36 sandervl Exp $ */ 2 2 3 3 /* … … 383 383 BOOL WIN32API GetUpdateRect( HWND hWnd, PRECT lpRect, BOOL bErase) 384 384 { 385 OSRECTL rect;386 385 ULONG windowH; 387 386 BOOL rc; … … 391 390 #endif 392 391 if (!lpRect) return FALSE; 392 393 393 hWnd = Win32ToOS2Handle(hWnd); 394 rc = OSLibWinQueryUpdateRect(hWnd,&rect); 395 windowH = OSLibGetWindowHeight(hWnd); 396 OS2ToWin32Rect(lpRect,&rect,windowH); 397 return rc; 394 return OSLibWinQueryUpdateRect(hWnd, (PVOID)&lpRect); 398 395 } 399 396 //****************************************************************************** -
trunk/src/user32/new/win32wnd.cpp
r328 r329 1 /* $Id: win32wnd.cpp,v 1.1 1 1999-07-18 14:39:35sandervl Exp $ */1 /* $Id: win32wnd.cpp,v 1.12 1999-07-18 14:56:37 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Code for OS/2 … … 666 666 //****************************************************************************** 667 667 ULONG Win32Window::MsgMove(ULONG xParent, ULONG yParent) 668 { 668 { 669 669 return SendInternalMessageA(WM_MOVE, 0, MAKELONG((USHORT)xParent, (USHORT)yParent)); 670 670 } … … 770 770 771 771 if(keystate & WMMOVE_LBUTTON) 772 772 winstate |= MK_LBUTTON; 773 773 if(keystate & WMMOVE_RBUTTON) 774 774 winstate |= MK_RBUTTON; 775 775 if(keystate & WMMOVE_MBUTTON) 776 776 winstate |= MK_MBUTTON; 777 777 if(keystate & WMMOVE_SHIFT) 778 778 winstate |= MK_SHIFT; 779 779 if(keystate & WMMOVE_CTRL) 780 781 780 winstate |= MK_CONTROL; 781 782 782 return SendInternalMessageA(WM_MOUSEMOVE, keystate, MAKELONG(x, y)); 783 783 } … … 792 792 ULONG Win32Window::MsgEraseBackGround(ULONG hps) 793 793 { 794 795 796 797 elsereturn SendInternalMessageA(WM_ERASEBKGND, hps, 0);794 if(isIcon) { 795 return SendInternalMessageA(WM_ICONERASEBKGND, hps, 0); 796 } 797 else return SendInternalMessageA(WM_ERASEBKGND, hps, 0); 798 798 } 799 799 //****************************************************************************** … … 802 802 { 803 803 if(isUnicode) { 804 804 return SendInternalMessageW(WM_SETTEXT, 0, (LPARAM)lpsz); 805 805 } 806 806 else return SendInternalMessageA(WM_SETTEXT, 0, (LPARAM)lpsz); … … 1469 1469 //****************************************************************************** 1470 1470 //****************************************************************************** 1471 Win32Window *Win32Window::GetWindowFromOS2Handle(HWND hwnd) 1472 { 1473 Win32Window *win32wnd; 1474 DWORD magic; 1475 1476 win32wnd = (Win32Window *)OSLibWinGetWindowULong(hwnd, OFFSET_WIN32WNDPTR); 1477 magic = OSLibWinGetWindowULong(hwnd, OFFSET_WIN32PM_MAGIC); 1478 1479 if(win32wnd && CheckMagicDword(magic)) { 1480 return win32wnd; 1481 } 1482 return 0; 1483 } 1484 //****************************************************************************** 1485 //****************************************************************************** 1471 1486 GenericObject *Win32Window::windows = NULL; -
trunk/src/user32/new/win32wnd.h
r328 r329 1 /* $Id: win32wnd.h,v 1.1 0 1999-07-18 14:39:35sandervl Exp $ */1 /* $Id: win32wnd.h,v 1.11 1999-07-18 14:56:37 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Code for OS/2 … … 125 125 126 126 static Win32Window *GetWindowFromHandle(HWND hwnd); 127 static Win32Window *GetWindowFromOS2Handle(HWND hwnd); 127 128 128 129 protected:
Note:
See TracChangeset
for help on using the changeset viewer.