Changed the way to obtain the rebar height - now getting the height of the first row via the window message, because something is causing the rebar itself to be apparently taller than that for some reason.

This commit is contained in:
OBattler
2022-07-12 05:22:34 +02:00
parent 01ae217609
commit 5615c170f6

View File

@@ -1297,8 +1297,7 @@ ui_init(int nCmdShow)
ToolBarCreate(hwndMain, hinstance); ToolBarCreate(hwndMain, hinstance);
/* Get the actual height of the toolbar */ /* Get the actual height of the toolbar */
GetWindowRect(hwndRebar, &rect); tbar_height = SendMessage(hwndRebar, RB_GETROWHEIGHT, 0, 0);
tbar_height = rect.bottom - rect.top;
if (hide_tool_bar) if (hide_tool_bar)
ShowWindow(hwndRebar, SW_HIDE); ShowWindow(hwndRebar, SW_HIDE);