Initialize the Pause button to the correct state on start

This commit is contained in:
David Hrdlička
2022-01-13 00:43:01 +01:00
parent 6a98625e28
commit dc8c94814e

View File

@@ -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 |