summaryrefslogtreecommitdiff
path: root/plugins/Console/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Console/src')
-rw-r--r--plugins/Console/src/Console.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Console/src/Console.cpp b/plugins/Console/src/Console.cpp
index 50373a214f..cda19327bc 100644
--- a/plugins/Console/src/Console.cpp
+++ b/plugins/Console/src/Console.cpp
@@ -103,7 +103,7 @@ static DWORD OutMsgs = 0;
static DWORD InMsgs = 0;
static HICON hIcons[15] = {0};
-static HANDLE hMenu = NULL;
+static HGENMENU hMenu = NULL;
static void LoadSettings();
static void ShowConsole(int show);
@@ -169,12 +169,11 @@ static void ShowConsole(int show)
if (show)
RedrawWindow(pActive->hList, NULL, NULL, RDW_INVALIDATE | RDW_FRAME |RDW_UPDATENOW | RDW_ERASE);
- if (hMenu)
- {
+ if (hMenu) {
CLISTMENUITEM mi = { sizeof(mi) };
mi.ptszName = (show) ? LPGENT("Hide Console") : LPGENT("Show Console");
mi.flags = CMIM_NAME | CMIF_TCHAR;
- CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenu, (LPARAM)&mi);
+ Menu_ModifyItem(hMenu, &mi);
}
if (hTTBButt)