diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-20 20:21:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-20 20:21:34 +0000 |
commit | f9ac6bc30beec86994091fa144dc3a569cd4a843 (patch) | |
tree | 97108f0d771971dddc60cc98e64603d7f5645ebe /plugins/NewAwaySysMod/src/GroupCheckbox.cpp | |
parent | ae9f3725b8dfa376cf66f346429ec78d1e4ab748 (diff) |
- standardized version resource;
- unused header file removed from project;
- code cleaning;
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@8198 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewAwaySysMod/src/GroupCheckbox.cpp')
-rw-r--r-- | plugins/NewAwaySysMod/src/GroupCheckbox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/NewAwaySysMod/src/GroupCheckbox.cpp b/plugins/NewAwaySysMod/src/GroupCheckbox.cpp index d396631676..3753f62999 100644 --- a/plugins/NewAwaySysMod/src/GroupCheckbox.cpp +++ b/plugins/NewAwaySysMod/src/GroupCheckbox.cpp @@ -44,8 +44,8 @@ #define CGSM_ISCHECKED 3 // mask for BM_GETCHECK
#define CGSM_GETSTATE 7 // mask to get only valid values for BM_GETSTATE
-#ifndef lengthof
-#define lengthof(s) (sizeof(s) / sizeof(*s))
+#ifndef SIZEOF
+#define SIZEOF(s) (sizeof(s) / sizeof(*s))
#endif
class CCheckboxData
@@ -268,7 +268,7 @@ static int CALLBACK CheckboxWndProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM l { 0, 0, DFCS_PUSHED, DFCS_INACTIVE,
DFCS_CHECKED, DFCS_CHECKED, DFCS_CHECKED | DFCS_PUSHED, DFCS_CHECKED | DFCS_INACTIVE,
DFCS_BUTTON3STATE | DFCS_CHECKED, DFCS_BUTTON3STATE | DFCS_CHECKED, DFCS_BUTTON3STATE | DFCS_INACTIVE | DFCS_CHECKED | DFCS_PUSHED, DFCS_BUTTON3STATE | DFCS_INACTIVE | DFCS_CHECKED | DFCS_PUSHED };
- _ASSERT(StateID >= 1 && StateID <= lengthof(dfcStates));
+ _ASSERT(StateID >= 1 && StateID <= SIZEOF(dfcStates));
DrawFrameControl(hdcMem, &rc, DFC_BUTTON, dfcStates[StateID - 1]);
}
|