diff options
Diffstat (limited to 'plugins/Popup')
-rw-r--r-- | plugins/Popup/src/headers.h | 1 | ||||
-rw-r--r-- | plugins/Popup/src/popup_wnd2.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Popup/src/headers.h b/plugins/Popup/src/headers.h index 56b8d1b625..4db076f80a 100644 --- a/plugins/Popup/src/headers.h +++ b/plugins/Popup/src/headers.h @@ -76,6 +76,7 @@ http://miranda-ng.org/distr/ #include <m_addcontact.h>
#include <m_clc.h>
#include <m_icolib.h>
+#include <m_genmenu.h>
#include <m_hotkeys.h>
#include <m_fontservice.h>
#include <m_avatars.h>
diff --git a/plugins/Popup/src/popup_wnd2.cpp b/plugins/Popup/src/popup_wnd2.cpp index f31013e2e6..31dc8a4962 100644 --- a/plugins/Popup/src/popup_wnd2.cpp +++ b/plugins/Popup/src/popup_wnd2.cpp @@ -1317,10 +1317,10 @@ LRESULT CALLBACK MenuHostWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM break;
case WM_MEASUREITEM:
- return CallService(MS_CLIST_MENUMEASUREITEM, wParam, lParam);
+ return Menu_MeasureItem((LPMEASUREITEMSTRUCT)lParam);
case WM_DRAWITEM:
- return CallService(MS_CLIST_MENUDRAWITEM, wParam, lParam);
+ return Menu_DrawItem((LPDRAWITEMSTRUCT)lParam);
}
return DefWindowProc(hwnd, message, wParam, lParam);
|