Changeset 2489 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Jan 21, 2000, 2:30:35 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r2483 r2489 1 /* $Id: win32wbase.cpp,v 1.14 3 2000-01-20 16:48:56 cbratschiExp $ */1 /* $Id: win32wbase.cpp,v 1.144 2000-01-21 13:30:35 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 105 105 OS2Hwnd = 0; 106 106 OS2HwndFrame = 0; 107 hMenu = 0;108 107 hSysMenu = 0; 109 108 Win32Hwnd = 0; … … 122 121 win32wndproc = 0; 123 122 hInstance = 0; 124 windowId = 0xFFFFFFFF; //default =-1123 dwIDMenu = 0; //0xFFFFFFFF; //default -1 125 124 userData = 0; 126 125 contextHelpId = 0; … … 1055 1054 //set new window rectangle 1056 1055 setWindowRect(lpWndPos->x, lpWndPos->y, lpWndPos->x + lpWndPos->cx, lpWndPos->y + lpWndPos->cy); 1057 if (getParent()) mapWin32Rect(getParent()->getOS2WindowHandle(),OSLIB_HWND_DESKTOP,&rectWindow);1058 1056 newWindowRect= rectWindow; 1059 1057 } … … 1414 1412 DWORD lParam; 1415 1413 1416 if (dwStyle & WS_CHILD) 1417 { 1418 lParam = MAKELONG(rectClient.left,rectClient.top); 1419 } else 1420 { 1421 POINT point; 1422 1423 point.x = rectClient.left; 1424 point.y = rectClient.top; 1425 if (getParent()) ClientToScreen(getParent()->getWindowHandle(),&point); 1426 1427 lParam = MAKELONG(point.x, point.y); 1428 } 1429 SendInternalMessageA(WM_MOVE, 0, lParam); 1414 if(getParent()) {//in parent coordinates 1415 POINT point; 1416 1417 point.x = rectClient.left; 1418 point.y = rectClient.top; 1419 MapWindowPoints(getWindowHandle(), getParent()->getWindowHandle(), &point, 1); 1420 1421 lParam = MAKELONG(point.x, point.y); 1422 } 1423 else {//in screen coordinates 1424 lParam = MAKELONG(rectWindow.left+rectClient.left, rectWindow.top+rectClient.top); 1425 } 1426 SendInternalMessageA(WM_MOVE, 0, lParam); 1430 1427 } 1431 1428 if (!(wpos->flags & SWP_NOSIZE) && !(wpos->flags & SWP_NOCLIENTSIZE)) … … 2722 2719 //****************************************************************************** 2723 2720 //****************************************************************************** 2724 VOID Win32BaseWindow::updateWindowStyle(DWORD oldExStyle,DWORD oldStyle)2725 {2726 if(IsWindowDestroyed()) return;2727 2728 if ((dwStyle & 0xFFFF0000) != (oldStyle & 0xFFFF0000))2729 {2730 FrameUpdateClient(this);2731 }2732 }2733 //******************************************************************************2734 //******************************************************************************2735 2721 LONG Win32BaseWindow::SetWindowLongA(int index, ULONG value, BOOL fUnicode) 2736 2722 { … … 2751 2737 SendInternalMessageA(WM_STYLECHANGING,GWL_EXSTYLE,(LPARAM)&ss); 2752 2738 setExStyle(ss.styleNew); 2753 updateWindowStyle(ss.styleOld,getStyle());2754 2739 SendInternalMessageA(WM_STYLECHANGED,GWL_EXSTYLE,(LPARAM)&ss); 2755 2740 return ss.styleOld; … … 2768 2753 SendInternalMessageA(WM_STYLECHANGING,GWL_STYLE,(LPARAM)&ss); 2769 2754 setStyle(ss.styleNew); 2770 updateWindowStyle(dwExStyle,ss.styleOld);2771 2755 SendInternalMessageA(WM_STYLECHANGED,GWL_STYLE,(LPARAM)&ss); 2772 2756 #ifdef DEBUG … … 2878 2862 void Win32BaseWindow::setWindowId(DWORD id) 2879 2863 { 2880 windowId = id; 2881 dprintf(("Set window ID to %x", id)); 2882 OSLibSetWindowID(OS2HwndFrame, id); 2864 dwIDMenu = id; 2883 2865 } 2884 2866 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.