Changeset 21334 for trunk/src/user32/window.cpp
- Timestamp:
- Jul 7, 2009, 9:06:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/window.cpp
r21303 r21334 437 437 return hwndRelated; 438 438 } 439 440 /****************************************************************************** 441 * GetWindowInfo (USER32.@) 442 * 443 * Note: tests show that Windows doesn't check cbSize of the structure. 444 */ 445 BOOL WINAPI GetWindowInfo( HWND hwnd, PWINDOWINFO pwi) 446 { 447 if (!pwi) return FALSE; 448 if (!IsWindow(hwnd)) return FALSE; 449 450 GetWindowRect(hwnd, &pwi->rcWindow); 451 GetClientRect(hwnd, &pwi->rcClient); 452 /* translate to screen coordinates */ 453 MapWindowPoints(hwnd, 0, (LPPOINT)&pwi->rcClient, 2); 454 455 pwi->dwStyle = GetWindowLongW(hwnd, GWL_STYLE); 456 pwi->dwExStyle = GetWindowLongW(hwnd, GWL_EXSTYLE); 457 pwi->dwWindowStatus = ((GetActiveWindow() == hwnd) ? WS_ACTIVECAPTION : 0); 458 459 pwi->cxWindowBorders = pwi->rcClient.left - pwi->rcWindow.left; 460 pwi->cyWindowBorders = pwi->rcWindow.bottom - pwi->rcClient.bottom; 461 462 pwi->atomWindowType = GetClassLongW( hwnd, GCW_ATOM ); 463 pwi->wCreatorVersion = 0x0400; 464 465 return TRUE; 466 } 467 439 468 //****************************************************************************** 440 469 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.