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:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user