Changeset 3610 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- May 26, 2000, 8:43:35 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r3603 r3610 1 /* $Id: win32wbase.cpp,v 1.19 4 2000-05-24 19:30:06sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.195 2000-05-26 18:43:34 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 149 149 hClipRegion = 0; 150 150 151 hTaskList = 0; 152 151 153 if(currentProcessId == -1) 152 154 { … … 161 163 Win32BaseWindow::~Win32BaseWindow() 162 164 { 165 if(hTaskList) { 166 OSLibWinRemoveFromTasklist(hTaskList); 167 } 168 163 169 OSLibWinSetVisibleRegionNotify(OS2HwndFrame, FALSE); 164 170 OSLibWinSetWindowULong(OS2Hwnd, OFFSET_WIN32WNDPTR, 0); … … 240 246 PrintWindowStyle(cs->style, cs->dwExStyle); 241 247 #endif 248 249 //If window has no owner/parent window, then it will be added to the tasklist 250 //(depending on visibility state) 251 if (!cs->hwndParent) fTaskList = TRUE; 242 252 243 253 sw = SW_SHOW; … … 501 511 502 512 OSLibWinConvertStyle(dwStyle,dwExStyle,&dwOSWinStyle); 503 #if 0504 if(((dwStyle & (WS_CAPTION|WS_POPUP)) == WS_CAPTION) && (getParent() == NULL || getParent() == windowDesktop)) {505 fTaskList = TRUE;506 }507 #else508 if (((dwStyle & (WS_CAPTION | WS_SYSMENU | 0xC0000000)) == (WS_CAPTION | WS_SYSMENU))) fTaskList = TRUE;509 #endif510 513 511 514 OS2Hwnd = OSLibWinCreateWindow((getParent()) ? getParent()->getOS2WindowHandle() : OSLIB_HWND_DESKTOP, … … 520 523 } 521 524 OSLibWinSetVisibleRegionNotify(OS2HwndFrame, TRUE); 522 523 525 SetLastError(0); 524 526 return TRUE; … … 664 666 //Note: Solitaire crashes when receiving WM_SIZE messages before WM_CREATE 665 667 fCreated = TRUE; 668 669 if(fTaskList) { 670 hTaskList = OSLibWinAddToTaskList(OS2HwndFrame, windowNameA, (cs->style & WS_VISIBLE) ? 1 : 0); 671 } 666 672 667 673 if (SendInternalMessageA(WM_NCCREATE,0,(LPARAM)cs)) … … 1337 1343 { 1338 1344 HandleNCPaint((HRGN)1); 1339 OSLibWinSetWindowText(OS2HwndFrame,(LPSTR)windowNameA); 1345 if(hTaskList) { 1346 OSLibWinChangeTaskList(hTaskList, OS2HwndFrame, getWindowNameA(), (getStyle() & WS_VISIBLE) ? 1 : 0); 1347 } 1340 1348 } 1341 1349 … … 1795 1803 { 1796 1804 HandleNCPaint((HRGN)1); 1797 OSLibWinSetWindowText(OS2HwndFrame,(LPSTR)windowNameA); 1805 if(hTaskList) { 1806 OSLibWinChangeTaskList(hTaskList, OS2HwndFrame, getWindowNameA(), (getStyle() & WS_VISIBLE) ? 1 : 0); 1807 } 1798 1808 } 1799 1809 … … 2098 2108 2099 2109 if(showstate & SWPOS_SHOW) { 2100 setStyle(getStyle() | WS_VISIBLE); 2101 } 2102 else setStyle(getStyle() & ~WS_VISIBLE); 2103 2110 setStyle(getStyle() | WS_VISIBLE); 2111 if(hTaskList) { 2112 OSLibWinChangeTaskList(hTaskList, OS2HwndFrame, getWindowNameA(), (getStyle() & WS_VISIBLE) ? 1 : 0); 2113 } 2114 } 2115 else { 2116 if(hTaskList) { 2117 OSLibWinChangeTaskList(hTaskList, OS2HwndFrame, getWindowNameA(), (getStyle() & WS_VISIBLE) ? 1 : 0); 2118 } 2119 setStyle(getStyle() & ~WS_VISIBLE); 2120 } 2104 2121 showFlag = (nCmdShow != SW_HIDE); 2105 2122 … … 2248 2265 //SvL: TODO: Send WM_SHOWWINDOW?? 2249 2266 OSLibWinShowWindow(OS2Hwnd, SWPOS_SHOW); 2267 if(hTaskList) { 2268 OSLibWinChangeTaskList(hTaskList, OS2HwndFrame, getWindowNameA(), (getStyle() & WS_VISIBLE) ? 1 : 0); 2269 } 2250 2270 } 2251 2271 else … … 2254 2274 //SvL: TODO: Send WM_SHOWWINDOW?? 2255 2275 OSLibWinShowWindow(OS2Hwnd, SWPOS_HIDE); 2276 if(hTaskList) { 2277 OSLibWinChangeTaskList(hTaskList, OS2HwndFrame, getWindowNameA(), (getStyle() & WS_VISIBLE) ? 1 : 0); 2278 } 2256 2279 } 2257 2280 rc = OSLibWinSetMultWindowPos(&swp, 1);
Note:
See TracChangeset
for help on using the changeset viewer.