Changeset 2529 for trunk/src/user32/win32wbasenonclient.cpp
- Timestamp:
- Jan 27, 2000, 6:21:10 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/win32wbasenonclient.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbasenonclient.cpp
r2521 r2529 1 /* $Id: win32wbasenonclient.cpp,v 1. 5 2000-01-26 18:02:37cbratschi Exp $ */1 /* $Id: win32wbasenonclient.cpp,v 1.6 2000-01-27 17:21:09 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 (non-client methods) … … 74 74 WORD wStateChange; 75 75 76 //CB: only caption is changed on activation77 if (!(dwStyle & WS_CAPTION)) return TRUE;78 79 76 if( wParam ) wStateChange = !(flags & WIN_NCACTIVATED); 80 77 else wStateChange = flags & WIN_NCACTIVATED; … … 84 81 if (wParam) flags |= WIN_NCACTIVATED; 85 82 else flags &= ~WIN_NCACTIVATED; 83 84 if (!(dwStyle & WS_CAPTION)) return TRUE; 86 85 87 86 if(!(dwStyle & WS_MINIMIZE)) … … 303 302 //****************************************************************************** 304 303 //****************************************************************************** 305 BOOL Win32BaseWindow::WindowNeedsWMBorder()306 {307 if (!(dwStyle & WS_CHILD) &&308 //Options.managed && //CB: to check309 !(dwExStyle & WS_EX_TOOLWINDOW) &&310 ( ((dwStyle & WS_CAPTION) == WS_CAPTION) ||311 (dwStyle & WS_THICKFRAME)))312 return TRUE;313 if (dwExStyle & WS_EX_TRAYWINDOW)314 return TRUE;315 return FALSE;316 }317 //******************************************************************************318 //******************************************************************************319 304 VOID Win32BaseWindow::AdjustMaximizedRect(LPRECT rect) 320 305 { 321 /* Decide if the window will be managed (see CreateWindowEx) */322 //if (!WindowNeedsWMBorder()) //CB: check Options.managed323 {324 if (HAS_ THICKFRAME(dwStyle,dwExStyle ))325 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) );306 if (HAS_THICKFRAME(dwStyle,dwExStyle )) 307 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) ); 308 else 309 if (HAS_DLGFRAME( dwStyle, dwExStyle )) 310 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 326 311 else 327 if (HAS_DLGFRAME( dwStyle, dwExStyle )) 328 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 329 else 330 if (HAS_THINFRAME( dwStyle )) 331 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 332 } 312 if (HAS_THINFRAME( dwStyle )) 313 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 333 314 } 334 315 //****************************************************************************** … … 345 326 if(dwStyle & WS_ICONIC) return; 346 327 347 /* Decide if the window will be managed (see CreateWindowEx) */348 //if (!WindowNeedsWMBorder()) //CB: check Options.managed349 {350 if (HAS_ THICKFRAME(dwStyle,dwExStyle ))351 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) );328 if (HAS_THICKFRAME(dwStyle,dwExStyle )) 329 InflateRect( rect, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME) ); 330 else 331 if (HAS_DLGFRAME( dwStyle, dwExStyle )) 332 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 352 333 else 353 if (HAS_DLGFRAME( dwStyle, dwExStyle )) 354 InflateRect(rect, GetSystemMetrics(SM_CXDLGFRAME), GetSystemMetrics(SM_CYDLGFRAME) ); 355 else 356 if (HAS_THINFRAME( dwStyle )) 357 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 358 359 if ((dwStyle & WS_CAPTION) == WS_CAPTION) 360 { 361 if (dwExStyle & WS_EX_TOOLWINDOW) 362 rect->top -= GetSystemMetrics(SM_CYSMCAPTION); 363 else 364 rect->top -= GetSystemMetrics(SM_CYCAPTION); 365 } 334 if (HAS_THINFRAME( dwStyle )) 335 InflateRect( rect, GetSystemMetrics(SM_CXBORDER), GetSystemMetrics(SM_CYBORDER)); 336 337 if ((dwStyle & WS_CAPTION) == WS_CAPTION) 338 { 339 if (dwExStyle & WS_EX_TOOLWINDOW) 340 rect->top -= GetSystemMetrics(SM_CYSMCAPTION); 341 else 342 rect->top -= GetSystemMetrics(SM_CYCAPTION); 366 343 } 367 344
Note:
See TracChangeset
for help on using the changeset viewer.
