diff options
-rw-r--r-- | plugins/Clist_modern/src/hdr/modern_global_structure.h | 1 | ||||
-rw-r--r-- | plugins/Clist_modern/src/modern_clistevents.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Clist_modern/src/hdr/modern_global_structure.h b/plugins/Clist_modern/src/hdr/modern_global_structure.h index 2f6b095114..6572e96290 100644 --- a/plugins/Clist_modern/src/hdr/modern_global_structure.h +++ b/plugins/Clist_modern/src/hdr/modern_global_structure.h @@ -16,7 +16,6 @@ typedef struct tagCLUIDATA BOOL bEventAreaEnabled;
BOOL bNotifyActive;
DWORD dwFlags;
- TCHAR *szNoEvents;
int hIconNotify;
MCONTACT hUpdateContact;
diff --git a/plugins/Clist_modern/src/modern_clistevents.cpp b/plugins/Clist_modern/src/modern_clistevents.cpp index 9632f6665a..ae2461b09b 100644 --- a/plugins/Clist_modern/src/modern_clistevents.cpp +++ b/plugins/Clist_modern/src/modern_clistevents.cpp @@ -354,7 +354,8 @@ static int EventArea_DrawWorker(HWND hWnd, HDC hDC) }
else {
HICON hIcon = (HICON)LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_BLANK), IMAGE_ICON, 16, 16, 0);
- ske_DrawText(hDC, g_CluiData.szNoEvents, lstrlen(g_CluiData.szNoEvents), &rc, DT_VCENTER | DT_SINGLELINE);
+ TCHAR *ptszEvents = TranslateT("No Events");
+ ske_DrawText(hDC, ptszEvents, lstrlen(ptszEvents), &rc, DT_VCENTER | DT_SINGLELINE);
ske_DrawIconEx(hDC, 4, (rc.bottom + rc.top - 16) / 2, hIcon, 16, 16, 0, 0, DI_NORMAL | DI_COMPAT);
DestroyIcon(hIcon);
}
@@ -426,7 +427,6 @@ int EventArea_Create(HWND hCluiWnd) CallService(MS_CLIST_FRAMES_UPDATEFRAME,-1,0);
EventArea_HideShowNotifyFrame();
- g_CluiData.szNoEvents = TranslateT("No Events");
g_CluiData.hMenuNotify = CreatePopupMenu();
g_CluiData.wNextMenuID = 1;
EventArea_ConfigureEventArea();
|