Changeset 741 for trunk/src/user32/new/pmwindow.cpp
- Timestamp:
- Aug 30, 1999, 2:00:12 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/pmwindow.cpp
r740 r741 1 /* $Id: pmwindow.cpp,v 1.2 5 1999-08-29 20:05:07sandervl Exp $ */1 /* $Id: pmwindow.cpp,v 1.26 1999-08-30 11:59:53 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 20 20 #include <wprocess.h> 21 21 #include <misc.h> 22 #include <win32w nd.h>22 #include <win32wbase.h> 23 23 #include <win32dlg.h> 24 24 #include "pmwindow.h" … … 78 78 CS_SIZEREDRAW | CS_HITTEST, 79 79 NROF_WIN32WNDBYTES)) { 80 dprintf(("WinRegisterClass Win32 Window failed"));80 dprintf(("WinRegisterClass Win32BaseWindow failed")); 81 81 return(FALSE); 82 82 } … … 96 96 POSTMSG_PACKET *postmsg; 97 97 OSLIBPOINT point, ClientPoint; 98 Win32 Window *win32wnd;98 Win32BaseWindow *win32wnd; 99 99 APIRET rc; 100 100 … … 102 102 SetWin32TIB(); 103 103 104 win32wnd = Win32 Window::GetWindowFromOS2Handle(hwnd);104 win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(hwnd); 105 105 106 106 if(msg != WM_CREATE && win32wnd == NULL) { … … 109 109 } 110 110 if(msg > WIN32APP_USERMSGBASE) { 111 112 111 //win32 app user message 112 dprintf(("PMWINDOW: Message %x (%x,%x) posted to window %x", (ULONG)msg-WIN32APP_USERMSGBASE, mp1, mp2, hwnd)); 113 113 win32wnd->SendMessageA((ULONG)msg-WIN32APP_USERMSGBASE, (ULONG)mp1, (ULONG)mp2); 114 114 } … … 182 182 if ((pswp->fl & SWP_ZORDER) && (pswp->hwndInsertBehind > HWND_BOTTOM)) 183 183 { 184 Win32 Window *wndAfter = Win32Window::GetWindowFromOS2Handle(pswp->hwndInsertBehind);184 Win32BaseWindow *wndAfter = Win32BaseWindow::GetWindowFromOS2Handle(pswp->hwndInsertBehind); 185 185 if(wndAfter) wp.hwndInsertAfter = wndAfter->getWindowHandle(); 186 186 } … … 217 217 if ((pswp->fl & SWP_ZORDER) && (pswp->hwndInsertBehind > HWND_BOTTOM)) 218 218 { 219 Win32 Window *wndAfter = Win32Window::GetWindowFromOS2Handle(pswp->hwndInsertBehind);219 Win32BaseWindow *wndAfter = Win32BaseWindow::GetWindowFromOS2Handle(pswp->hwndInsertBehind); 220 220 wp.hwndInsertAfter = wndAfter->getWindowHandle(); 221 221 } … … 434 434 case WM_MOUSEMOVE: 435 435 { 436 436 //Only send this message when the mouse isn't captured 437 437 if(WinQueryCapture(HWND_DESKTOP) != NULLHANDLE) { 438 438 goto RunDefWndProc; 439 439 } 440 440 ULONG keystate = 0; 441 441 if(WinGetKeyState(HWND_DESKTOP, VK_BUTTON1)) … … 593 593 594 594 case WM_HITTEST: 595 596 if (WinIsWindowEnabled(hwnd)) 597 598 599 600 595 // Only send this message if the window is enabled 596 if (WinIsWindowEnabled(hwnd)) 597 { 598 if(win32wnd->MsgHitTest((*(POINTS *)&mp1).x, MapOS2ToWin32Y(OSLIB_HWND_DESKTOP, hwnd, (*(POINTS *)&mp1).y))) { 599 goto RunDefWndProc; 600 } 601 601 } 602 602 else goto RunDefWndProc;
Note:
See TracChangeset
for help on using the changeset viewer.