mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[MSPAINT]
- Determine and adapt to actual status bar height instead of assuming a fixed height. This improves theme support. svn path=/trunk/; revision=74642
This commit is contained in:
parent
c04750f246
commit
bc7078eaf3
|
@ -66,7 +66,13 @@ void CMainWindow::alignChildrenToMainWindow()
|
|||
h = clientRect.bottom - 3;
|
||||
}
|
||||
|
||||
scrollboxWindow.MoveWindow(x, y, w, ::IsWindowVisible(hStatusBar) ? h - 23 : h, TRUE);
|
||||
RECT statusBarRect0;
|
||||
SendMessage(hStatusBar, SB_GETRECT, 0, (LPARAM)&statusBarRect0);
|
||||
int statusBarBorders[3];
|
||||
SendMessage(hStatusBar, SB_GETBORDERS, 0, (LPARAM)&statusBarBorders);
|
||||
int statusBarHeight = statusBarRect0.bottom - statusBarRect0.top + statusBarBorders[1];
|
||||
|
||||
scrollboxWindow.MoveWindow(x, y, w, ::IsWindowVisible(hStatusBar) ? h - statusBarHeight : h, TRUE);
|
||||
paletteWindow.MoveWindow(x, 9, 255, 32, TRUE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue