diff options
author | Goraf <goraf@miranda-ng.org> | 2016-02-09 16:00:09 +0000 |
---|---|---|
committer | Goraf <goraf@miranda-ng.org> | 2016-02-09 16:00:09 +0000 |
commit | d49739f87dd347d6a560dd834788b74cf520b931 (patch) | |
tree | 02d0f5c6f6846f7a48234ed26bc65e421e407d80 /plugins/ContextHelp/src/utils.cpp | |
parent | fd8fdaa7ade16132fd3f23db5b0727e3615038ad (diff) |
ContextHelp: revert of accidentally lowercased SIZEOF()
git-svn-id: http://svn.miranda-ng.org/main/trunk@16251 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ContextHelp/src/utils.cpp')
-rw-r--r-- | plugins/ContextHelp/src/utils.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/ContextHelp/src/utils.cpp b/plugins/ContextHelp/src/utils.cpp index 84e78fcc7d..aac6e70a22 100644 --- a/plugins/ContextHelp/src/utils.cpp +++ b/plugins/ContextHelp/src/utils.cpp @@ -39,12 +39,12 @@ int GetControlType(HWND hwndCtl) if (GetClassLong(hwndCtl, GCW_ATOM) == 32770)
return CTLTYPE_DIALOG;
- if (!GetClassName(hwndCtl, szClassName, sizeof(szClassName)))
+ if (!GetClassName(hwndCtl, szClassName, _countof(szClassName)))
return CTLTYPE_UNKNOWN;
if (!lstrcmpi(szClassName, _T("MDIClient")))
return CTLTYPE_DIALOG;
else if (!lstrcmpi(szClassName, _T("Static"))) {
- if (GetClassName(GetParent(hwndCtl), szClassName, sizeof(szClassName)) && !lstrcmpi(szClassName, _T("ComboBox")) || !lstrcmpi(szClassName, WC_COMBOBOXEX))
+ if (GetClassName(GetParent(hwndCtl), szClassName, _countof(szClassName)) && !lstrcmpi(szClassName, _T("ComboBox")) || !lstrcmpi(szClassName, WC_COMBOBOXEX))
return CTLTYPE_COMBO;
style = GetWindowLongPtr(hwndCtl, GWL_STYLE);
switch (style&SS_TYPEMASK) {
@@ -90,9 +90,9 @@ int GetControlType(HWND hwndCtl) else if (!lstrcmpi(szClassName, MIRANDABUTTONCLASS))
return CTLTYPE_BUTTON;
else if (!lstrcmpi(szClassName, _T("Edit"))) {
- if (GetClassName(GetParent(hwndCtl), szClassName, sizeof(szClassName)) && !lstrcmpi(szClassName, _T("ComboBox")))
+ if (GetClassName(GetParent(hwndCtl), szClassName, _countof(szClassName)) && !lstrcmpi(szClassName, _T("ComboBox")))
return CTLTYPE_COMBO;
- if (GetClassName(GetWindow(hwndCtl, GW_HWNDNEXT), szClassName, sizeof(szClassName)) && !lstrcmpi(szClassName, UPDOWN_CLASS))
+ if (GetClassName(GetWindow(hwndCtl, GW_HWNDNEXT), szClassName, _countof(szClassName)) && !lstrcmpi(szClassName, UPDOWN_CLASS))
if ((HWND)SendMessage(GetWindow(hwndCtl, GW_HWNDNEXT), UDM_GETBUDDY, 0, 0) == hwndCtl)
return CTLTYPE_SPINEDIT;
return CTLTYPE_EDIT;
@@ -116,7 +116,7 @@ int GetControlType(HWND hwndCtl) else if (!lstrcmpi(szClassName, WC_PAGESCROLLER))
return CTLTYPE_SCROLL;
else if (!lstrcmpi(szClassName, UPDOWN_CLASS)) {
- if (GetClassName((HWND)SendMessage(hwndCtl, UDM_GETBUDDY, 0, 0), szClassName, sizeof(szClassName)) && !lstrcmpi(szClassName, _T("Edit")))
+ if (GetClassName((HWND)SendMessage(hwndCtl, UDM_GETBUDDY, 0, 0), szClassName, _countof(szClassName)) && !lstrcmpi(szClassName, _T("Edit")))
return CTLTYPE_SPINEDIT;
return CTLTYPE_SCROLL;
}
@@ -169,7 +169,7 @@ HWND GetControlDialog(HWND hwndCtl) while (hwndCtl != NULL) {
if (GetClassLong(hwndCtl, GCW_ATOM) == 32770)
return hwndCtl;
- if (GetClassName(hwndCtl, szClassName, sizeof(szClassName)))
+ if (GetClassName(hwndCtl, szClassName, _countof(szClassName)))
if (!lstrcmpi(szClassName, _T("MDIClient")))
return hwndCtl;
hwndCtl = GetParent(hwndCtl);
@@ -272,7 +272,7 @@ static BOOL CALLBACK CreateCtlIdEnumProc(HWND hwnd, LPARAM lParam) TCHAR szClassName[32];
if (GetClassLong(hwnd, GCW_ATOM) == 32770) // class="#32770"
return TRUE;
- if (GetClassName(hwnd, szClassName, sizeof(szClassName)))
+ if (GetClassName(hwnd, szClassName, _countof(szClassName)))
if (!lstrcmpi(szClassName, _T("MDIClient")))
return TRUE;
if (GetWindowLongPtr(hwnd, GWL_ID) <= 0 || GetWindowLongPtr(hwnd, GWL_ID) == 0xFFFF)
@@ -293,7 +293,7 @@ int GetControlID(HWND hwndCtl) if (ccid.id != 0)
return ccid.id;
- if (GetClassName(hwndCtl, szClassName, sizeof(szClassName))) {
+ if (GetClassName(hwndCtl, szClassName, _countof(szClassName))) {
if (!lstrcmpi(szClassName, UPDOWN_CLASS)) { // handle spinner controls as a whole
DWORD style;
HWND hwndBuddy;
|