From dc8c94814ec0560f69d0753090e84aed0d320373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Thu, 13 Jan 2022 00:43:01 +0100 Subject: [PATCH] Initialize the Pause button to the correct state on start --- src/win/win_toolbar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/win/win_toolbar.c b/src/win/win_toolbar.c index 15bc6ceea..dd484658f 100644 --- a/src/win/win_toolbar.c +++ b/src/win/win_toolbar.c @@ -144,6 +144,9 @@ ToolBarCreate(HWND hwndParent, HINSTANCE hInst) pOriginalProcedure = (WNDPROC) GetWindowLongPtr(hwndToolbar, GWLP_WNDPROC); SetWindowLongPtr(hwndToolbar, GWLP_WNDPROC, (LONG_PTR)&ToolBarProcedure); + // Make sure the Pause button is in the correct state. + ToolBarUpdatePause(dopause); + // Create the containing Rebar. hwndRebar = CreateWindowEx(0, REBARCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS |