Changeset 12568
- Timestamp:
- Dec 5, 1999, 5:37:59 PM (25 years ago)
- Location:
- tags/trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/user32/oslibwin.cpp ¶
r12435 r12568 1 /* $Id: oslibwin.cpp,v 1. 49 1999-11-26 17:06:08 cbratschiExp $ */1 /* $Id: oslibwin.cpp,v 1.50 1999-12-05 16:37:57 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 54 54 HWND OSLibWinCreateWindow(HWND hwndParent, ULONG dwWinStyle, ULONG dwFrameStyle, 55 55 char *pszName, HWND Owner, ULONG fHWND_BOTTOM, HWND *hwndFrame, 56 ULONG id )56 ULONG id, BOOL fTaskList) 57 57 { 58 58 HWND hwndClient; … … 81 81 82 82 dwFrameStyle |= FCF_NOBYTEALIGN; 83 if (hwndParent == HWND_DESKTOP && dwFrameStyle & FCF_TITLEBAR) { 83 if(fTaskList) 84 { 84 85 dwFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER; 85 86 } … … 1053 1054 //****************************************************************************** 1054 1055 //****************************************************************************** 1055 void OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle )1056 void OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle, BOOL fTaskList) 1056 1057 { 1057 1058 ULONG OSWinStyle, OSFrameStyle, borderWidth, borderHeight,dwExStyle; 1058 1059 1059 1060 OSLibWinConvertStyle(dwStyle, &dwExStyle, &OSWinStyle, &OSFrameStyle, &borderWidth, &borderHeight); 1061 1062 if(fTaskList) 1063 { 1064 OSFrameStyle |= FCF_TASKLIST | FCF_NOMOVEWITHOWNER; 1065 } 1060 1066 1061 1067 // OSWinStyle = OSWinStyle & ~(WS_TABSTOP | WS_GROUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS); -
TabularUnified tags/trunk/src/user32/oslibwin.h ¶
r12417 r12568 1 /* $Id: oslibwin.h,v 1.2 6 1999-11-24 19:32:21sandervl Exp $ */1 /* $Id: oslibwin.h,v 1.27 1999-12-05 16:37:58 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 39 39 HWND OSLibWinCreateWindow(HWND hwndParent, ULONG dwWinStyle, ULONG dwFrameStyle, 40 40 char *pszName, HWND Owner, ULONG fBottom, 41 HWND *hwndFrame, ULONG id );41 HWND *hwndFrame, ULONG id, BOOL fTaskList); 42 42 43 43 BOOL OSLibWinConvertStyle(ULONG dwStyle, ULONG *dwExStyle, ULONG *OSWinStyle, ULONG *OSFrameStyle, ULONG *borderWidth, ULONG *borderHeight); 44 void OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle );44 void OSLibSetWindowStyle(HWND hwnd, ULONG dwStyle, BOOL fTaskList); 45 45 46 46 #define OSLIB_QWL_USER -4 -
TabularUnified tags/trunk/src/user32/win32wbase.cpp ¶
r12556 r12568 1 /* $Id: win32wbase.cpp,v 1.10 4 1999-12-05 00:31:48 sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.105 1999-12-05 16:37:58 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 146 146 fIsDestroyed = FALSE; 147 147 fCreated = FALSE; 148 fTaskList = FALSE; 148 149 149 150 windowNameA = NULL; … … 509 510 } 510 511 512 if(((cs->style & 0xC0000000) == WS_OVERLAPPED) && ((cs->style & WS_CAPTION) == WS_CAPTION) && owner == NULL) 513 { 514 fTaskList = TRUE; 515 } 516 511 517 DWORD dwOSWinStyle, dwOSFrameStyle; 512 518 … … 561 567 (owner) ? owner->getOS2WindowHandle() : OSLIB_HWND_DESKTOP, 562 568 (hwndLinkAfter == HWND_BOTTOM) ? TRUE : FALSE, 563 &OS2HwndFrame, 0 );569 &OS2HwndFrame, 0, fTaskList); 564 570 565 571 if(OS2Hwnd == 0) { … … 718 724 { 719 725 if(SendInternalMessageA(WM_CLOSE, 0, 0) == 0) { 720 726 dprintf(("Win32BaseWindow::MsgClose, app handles msg")); 721 727 return 0; //app handles this message 722 728 } … … 1674 1680 case WM_PAINTICON: 1675 1681 case WM_PAINT: 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1682 { 1683 PAINTSTRUCT ps; 1684 HDC hdc = BeginPaint(getWindowHandle(), &ps ); 1685 if( hdc ) 1686 { 1687 if( (getStyle() & WS_MINIMIZE) && getWindowClass()->getIcon()) 1688 { 1689 int x = (rectWindow.right - rectWindow.left - GetSystemMetrics(SM_CXICON))/2; 1690 int y = (rectWindow.bottom - rectWindow.top - GetSystemMetrics(SM_CYICON))/2; 1691 dprintf(("Painting class icon: vis rect=(%i,%i - %i,%i)\n", ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right, ps.rcPaint.bottom )); 1692 DrawIcon(hdc, x, y, getWindowClass()->getIcon() ); 1693 } 1694 EndPaint(getWindowHandle(), &ps ); 1695 } 1696 return 0; 1697 } 1692 1698 1693 1699 case WM_GETDLGCODE: … … 2343 2349 2344 2350 BOOL rc = OSLibWinShowWindow(OS2HwndFrame, showstate); 2351 2345 2352 return rc; 2346 2353 } … … 2957 2964 if(IsWindowDestroyed()) return; 2958 2965 2959 /* 2960 if (isChild()) 2961 { 2962 DWORD dwOSWinStyle,dwOSFrameStyle,newBorderWidth,newBorderHeight; 2963 2964 OSLibWinConvertStyle(dwStyle,&dwExStyle,&dwOSWinStyle,&dwOSFrameStyle,&newBorderWidth,&newBorderHeight); 2965 if (newBorderWidth != borderWidth || newBorderHeight != borderHeight) 2966 { 2967 borderWidth = newBorderWidth; 2968 borderHeight = newBorderHeight; 2969 FrameSetBorderSize(this,TRUE); 2970 } 2971 } 2972 */ 2973 2974 if (dwStyle != oldStyle) OSLibSetWindowStyle(OS2HwndFrame,dwStyle); 2966 if (dwStyle != oldStyle) OSLibSetWindowStyle(OS2HwndFrame, dwStyle, fTaskList); 2975 2967 } 2976 2968 //****************************************************************************** -
TabularUnified tags/trunk/src/user32/win32wbase.h ¶
r12534 r12568 1 /* $Id: win32wbase.h,v 1.4 8 1999-12-02 19:30:41sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.49 1999-12-05 16:37:59 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 301 301 BOOL fIsDestroyed; 302 302 BOOL fCreated; 303 BOOL fTaskList; //should be listed in PM tasklist or not 303 304 304 305 PVOID pOldFrameProc;
Note:
See TracChangeset
for help on using the changeset viewer.