- Timestamp:
- Jan 15, 2004, 11:28:42 AM (22 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r10379 r10396 1 /* $Id: oslibwin.cpp,v 1.14 6 2004-01-11 12:03:15sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.147 2004-01-15 10:28:41 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 884 884 //****************************************************************************** 885 885 //****************************************************************************** 886 HWND OSLibWinQueryClientWindow(HWND hwndFrame)887 {888 HWND hwndClient = 0;889 890 if(((ULONG)WinSendMsg(hwndFrame, WM_QUERYFRAMEINFO, NULL, NULL)) & FI_FRAME)891 hwndClient = WinWindowFromID(hwndFrame, FID_CLIENT);892 893 return hwndClient;894 }895 //******************************************************************************896 //******************************************************************************897 886 BOOL OSLibWinEndEnumWindows(HWND hwndEnum) 898 887 { -
trunk/src/user32/oslibwin.h
r10031 r10396 1 /* $Id: oslibwin.h,v 1.7 6 2003-04-23 18:00:58sandervl Exp $ */1 /* $Id: oslibwin.h,v 1.77 2004-01-15 10:28:42 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 43 43 HWND OSLibWinCreateWindow(HWND hwndParent,ULONG dwWinStyle, ULONG dwOSFrameStyle, 44 44 char *pszName, HWND Owner, ULONG fBottom, 45 ULONG id, BOOL fTaskList,BOOL fShellPosition, 45 ULONG id, BOOL fTaskList,BOOL fShellPosition, 46 46 DWORD classStyle, HWND *hwndFrame); 47 47 48 BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG dwExStyle, ULONG *OSWinStyle, 48 BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG dwExStyle, ULONG *OSWinStyle, 49 49 ULONG *OSFrameStyle); 50 void OSLibSetWindowStyle(HWND hwndFrame, HWND hwndClient, ULONG dwStyle, 50 void OSLibSetWindowStyle(HWND hwndFrame, HWND hwndClient, ULONG dwStyle, 51 51 ULONG dwExStyle, ULONG dwOldWindowsStyle); 52 52 53 53 DWORD OSLibQueryWindowStyle(HWND hwnd); 54 54 55 BOOL OSLibWinPositionFrameControls(HWND hwndFrame, RECTLOS2 *pRect, DWORD dwStyle, 56 DWORD dwExStyle, HICON hSysMenuIcon, 55 BOOL OSLibWinPositionFrameControls(HWND hwndFrame, RECTLOS2 *pRect, DWORD dwStyle, 56 DWORD dwExStyle, HICON hSysMenuIcon, 57 57 BOOL drawCloseButton, BOOL fClassIcon); 58 58 BOOL OSLibChangeCloseButtonState(HWND hwndFrame, BOOL State); … … 281 281 282 282 BOOL OSLibWinQueryWindowPos (HWND hwnd, PSWP pswp); 283 void OSLibMapSWPtoWINDOWPOS(PSWP pswp, PWINDOWPOS pwpos, PSWP pswpOld, 283 void OSLibMapSWPtoWINDOWPOS(PSWP pswp, PWINDOWPOS pwpos, PSWP pswpOld, 284 284 int parentHeight, HWND hwnd); 285 void OSLibMapWINDOWPOStoSWP(struct tagWINDOWPOS *pwpos, PSWP pswp, PSWP pswpOld, 285 void OSLibMapWINDOWPOStoSWP(struct tagWINDOWPOS *pwpos, PSWP pswp, PSWP pswpOld, 286 286 int parentHeight, HWND hFrame); 287 287 … … 290 290 HWND OSLibWinBeginEnumWindows(HWND hwnd); 291 291 HWND OSLibWinGetNextWindow(HWND hwndEnum); 292 HWND OSLibWinQueryClientWindow(HWND hwndFrame);293 292 BOOL OSLibWinEndEnumWindows(HWND hwndEnum); 294 293 BOOL OSLibWinQueryWindowProcess(HWND hwnd, ULONG *pid, ULONG *tid); -
trunk/src/user32/win32wbase.cpp
r10379 r10396 1 /* $Id: win32wbase.cpp,v 1.38 3 2004-01-11 12:03:18sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.384 2004-01-15 10:28:42 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 251 251 } 252 252 253 // Decrement class window counter 253 // Decrement class window counter 254 254 // NOTE: Must be done before ReleaseDC call for ownDC! 255 255 if(windowClass) { … … 892 892 Win32Hwnd = 0; 893 893 } 894 // Decrement class window counter 894 // Decrement class window counter 895 895 // NOTE: Must be done before ReleaseDC call for ownDC! 896 896 if(windowClass) { … … 2552 2552 } 2553 2553 2554 // Hack alert: This makes sure the tooltips windows in OpenOffice don't 2554 // Hack alert: This makes sure the tooltips windows in OpenOffice don't 2555 2555 // activate the owner windows too. 2556 2556 // First condition takes care of SetWindowPos during window 2557 2557 // creation. The 2nd one for calls made by OpenOffice 2558 if(((getStyle() & WS_POPUP) && (getExStyle() & WS_EX_TOPMOST)) || (fuFlags & SWP_NOOWNERZORDER)) 2559 { 2558 if(((getStyle() & WS_POPUP) && (getExStyle() & WS_EX_TOPMOST)) || (fuFlags & SWP_NOOWNERZORDER)) 2559 { 2560 2560 //SWP_NOOWNERZORDER means only the z-order of this window changes; it 2561 2561 //should not affect the owner … … 3196 3196 { 3197 3197 wnd = GetWindowFromOS2FrameHandle(hwnd); 3198 if(wnd == NULL) {3199 hwnd = OSLibWinQueryClientWindow(hwnd);3200 if(hwnd) wnd = GetWindowFromOS2Handle(hwnd);3201 }3202 3198 if(wnd) { 3203 3199 hwndWin32 = wnd->getWindowHandle(); … … 3343 3339 { 3344 3340 wnd = GetWindowFromOS2FrameHandle(hwnd); 3345 if(wnd == NULL) {3346 hwnd = OSLibWinQueryClientWindow(hwnd);3347 if(hwnd) wnd = GetWindowFromOS2Handle(hwnd);3348 }3349 3350 3341 if(wnd) { 3351 3342 //According to Wine, the class doesn't need to be specified
Note:
See TracChangeset
for help on using the changeset viewer.