diff options
Diffstat (limited to 'src/core/stdmsg/src/statusicon.cpp')
-rw-r--r-- | src/core/stdmsg/src/statusicon.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/stdmsg/src/statusicon.cpp b/src/core/stdmsg/src/statusicon.cpp index 7478f2d14e..c82669f941 100644 --- a/src/core/stdmsg/src/statusicon.cpp +++ b/src/core/stdmsg/src/statusicon.cpp @@ -26,11 +26,11 @@ HANDLE hHookIconPressedEvt; static int OnSrmmIconChanged(WPARAM hContact, LPARAM)
{
- if (hContact == NULL)
+ if (hContact == 0)
WindowList_Broadcast(pci->hWindowList, DM_STATUSICONCHANGE, 0, 0);
else {
HWND hwnd = WindowList_Find(pci->hWindowList, hContact);
- if (hwnd != NULL)
+ if (hwnd != nullptr)
PostMessage(hwnd, DM_STATUSICONCHANGE, 0, 0);
}
return 0;
@@ -48,7 +48,7 @@ void DrawStatusIcons(MCONTACT hContact, HDC hDC, const RECT &rc, int gap) HICON hIcon = ((sid->flags & MBF_DISABLED) && sid->hIconDisabled) ? sid->hIconDisabled : sid->hIcon;
SetBkMode(hDC, TRANSPARENT);
- DrawIconEx(hDC, x, (rc.top + rc.bottom - cy_icon) >> 1, hIcon, cx_icon, cy_icon, 0, NULL, DI_NORMAL);
+ DrawIconEx(hDC, x, (rc.top + rc.bottom - cy_icon) >> 1, hIcon, cx_icon, cy_icon, 0, nullptr, DI_NORMAL);
x += cx_icon + gap;
}
@@ -58,7 +58,7 @@ void CheckStatusIconClick(MCONTACT hContact, HWND hwndFrom, POINT pt, const RECT {
int iconNum = (pt.x - rc.left) / (GetSystemMetrics(SM_CXSMICON) + gap);
StatusIconData *sid = Srmm_GetNthIcon(hContact, iconNum);
- if (sid == NULL)
+ if (sid == nullptr)
return;
StatusIconClickData sicd = { sizeof(sicd) };
@@ -89,7 +89,7 @@ int DeinitStatusIcons() int GetStatusIconsCount(MCONTACT hContact)
{
int nIcon = 0;
- while (Srmm_GetNthIcon(hContact, nIcon) != NULL)
+ while (Srmm_GetNthIcon(hContact, nIcon) != nullptr)
nIcon++;
return nIcon;
}
|