From 181403098c9c5cb9370b59b627c28783a2809a3e Mon Sep 17 00:00:00 2001 From: dreamforceinc Date: Tue, 26 Dec 2023 14:07:30 +0300 Subject: [PATCH] Added KillTimer() function. --- wCenterWindow/wCenterWindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wCenterWindow/wCenterWindow.cpp b/wCenterWindow/wCenterWindow.cpp index 0f193d3..6677fb1 100644 --- a/wCenterWindow/wCenterWindow.cpp +++ b/wCenterWindow/wCenterWindow.cpp @@ -257,6 +257,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd if (hKbdHook) UnhookWindowsHookEx(hKbdHook); if (hMenu) DestroyMenu(hMenu); Shell_NotifyIconW(NIM_DELETE, &nid); + KillTimer(hMainWnd, IDT_TIMER); DestroyIcon(hIconSmall); DestroyIcon(hIconLarge); HeapFree(hHeap, NULL, szWinClassBuffer);