diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-25 23:34:47 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-25 23:34:47 +0000 |
commit | be489c4e6f4c1ab4b4d7f84e35a73e34e1b0b331 (patch) | |
tree | 233968040ec6bff10b0726de4e7a69313bb78266 /plugins/Clist_modern/src/modern_skinengine.cpp | |
parent | c055d21f01423462fa8d468f7c33bde55e595773 (diff) |
- 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
Diffstat (limited to 'plugins/Clist_modern/src/modern_skinengine.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_skinengine.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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; |