Author: bfreisen
Date: Wed May 24 19:31:43 2017
New Revision: 74642
URL:
http://svn.reactos.org/svn/reactos?rev=74642&view=rev
Log:
[MSPAINT]
- Determine and adapt to actual status bar height instead of assuming a fixed height.
This improves theme support.
Modified:
trunk/reactos/base/applications/mspaint/winproc.cpp
Modified: trunk/reactos/base/applications/mspaint/winproc.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/winproc.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/winproc.cpp [iso-8859-1] Wed May 24 19:31:43
2017
@@ -66,7 +66,13 @@
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);
}