From be489c4e6f4c1ab4b4d7f84e35a73e34e1b0b331 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 25 Jun 2015 23:34:47 +0000 Subject: - Menu_EnableItem & Menu_SetChecked - more suitable helpers to set flags; - fix for checks in frame menus; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@14389 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_skinengine.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Clist_modern/src/modern_skinengine.cpp') diff --git a/plugins/Clist_modern/src/modern_skinengine.cpp b/plugins/Clist_modern/src/modern_skinengine.cpp index 5e71a539dd..dc92f299de 100644 --- a/plugins/Clist_modern/src/modern_skinengine.cpp +++ b/plugins/Clist_modern/src/modern_skinengine.cpp @@ -2754,8 +2754,8 @@ static INT_PTR ske_Service_UpdateFrameImage(WPARAM wParam, LPARAM) // return 0; RECT wnd; - BOOL NoCancelPost = 0; - BOOL IsAnyQueued = 0; + bool NoCancelPost = false; + bool IsAnyQueued = false; if (!g_CluiData.mutexOnEdgeSizing) GetWindowRect(pcli->hwndContactList, &wnd); else @@ -2840,9 +2840,9 @@ static INT_PTR ske_Service_InvalidateFrameImage(WPARAM wParam, LPARAM lParam) } } } - else Sync(QueueAllFramesUpdating, 1); + else Sync(QueueAllFramesUpdating, true); } - else Sync(QueueAllFramesUpdating, 1); + else Sync(QueueAllFramesUpdating, true); if (!flag_bUpdateQueued || g_flag_bPostWasCanceled) if (PostMessage(pcli->hwndContactList, UM_UPDATE, 0, 0)) { @@ -3163,7 +3163,7 @@ int ske_ValidateFrameImageProc(RECT *r) // Callin } if (IsForceAllPainting) { BitBlt(g_pCachedWindow->hImageDC, 0, 0, g_pCachedWindow->Width, g_pCachedWindow->Height, g_pCachedWindow->hBackDC, 0, 0, SRCCOPY); - Sync(QueueAllFramesUpdating, (BYTE)1); + Sync(QueueAllFramesUpdating, true); } //-- Validating frames for (int i = 0; i < g_nFramesCount; i++) @@ -3178,7 +3178,7 @@ int ske_ValidateFrameImageProc(RECT *r) // Callin ske_UpdateWindowImageRect(&wnd); //-- Clear queue - Sync(QueueAllFramesUpdating, 0); + Sync(QueueAllFramesUpdating, false); flag_bUpdateQueued = 0; g_flag_bPostWasCanceled = 0; return 1; -- cgit v1.2.3