From 5615c170f6d67dabaa0eabd61ae17b1ab4b6ef6b Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 12 Jul 2022 05:22:34 +0200 Subject: [PATCH] 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. --- src/win/win_ui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/win/win_ui.c b/src/win/win_ui.c index 3fc03e191..ff7708716 100644 --- a/src/win/win_ui.c +++ b/src/win/win_ui.c @@ -1297,8 +1297,7 @@ ui_init(int nCmdShow) ToolBarCreate(hwndMain, hinstance); /* Get the actual height of the toolbar */ - GetWindowRect(hwndRebar, &rect); - tbar_height = rect.bottom - rect.top; + tbar_height = SendMessage(hwndRebar, RB_GETROWHEIGHT, 0, 0); if (hide_tool_bar) ShowWindow(hwndRebar, SW_HIDE);