diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-16 12:45:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-16 12:45:09 +0300 |
commit | 6ca050e5d2125d7ff0c9a7bc9ec51dcfd19594af (patch) | |
tree | b044b32bbc66b7f432f04370f41e1fd403b40eb1 /plugins/NewAwaySysMod | |
parent | 22682a718275e7a5e15f0d1dd129fab8c496168e (diff) |
unused code removed
Diffstat (limited to 'plugins/NewAwaySysMod')
-rw-r--r-- | plugins/NewAwaySysMod/src/Notification.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/plugins/NewAwaySysMod/src/Notification.cpp b/plugins/NewAwaySysMod/src/Notification.cpp index 27445ccb66..a451c2d392 100644 --- a/plugins/NewAwaySysMod/src/Notification.cpp +++ b/plugins/NewAwaySysMod/src/Notification.cpp @@ -36,34 +36,6 @@ void ShowMsg(wchar_t *FirstLine, wchar_t *SecondLine, bool IsErrorMsg, int Timeo else MessageBox(nullptr, SecondLine, FirstLine, MB_OK | (IsErrorMsg ? MB_ICONEXCLAMATION : MB_ICONINFORMATION));
}
-
-static int CALLBACK MenuWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
-{
- switch (uMsg) {
- case WM_MEASUREITEM:
- return Menu_MeasureItem(lParam);
-
- case WM_DRAWITEM:
- return Menu_DrawItem(lParam);
- }
- return DefWindowProc(hWnd, uMsg, wParam, lParam);
-}
-
-
-static VOID CALLBACK ShowContactMenu(MCONTACT hContact)
-{
- POINT pt;
- HWND hMenuWnd = CreateWindowEx(WS_EX_TOOLWINDOW, L"static", MOD_NAMEW L"_MenuWindow", 0, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, HWND_DESKTOP, nullptr, g_hInstance, nullptr);
- SetWindowLongPtr(hMenuWnd, GWLP_WNDPROC, (LONG_PTR)MenuWndProc);
- HMENU hMenu = Menu_BuildContactMenu(hContact);
- GetCursorPos(&pt);
- SetForegroundWindow(hMenuWnd);
- Clist_MenuProcessCommand(TrackPopupMenu(hMenu, TPM_LEFTALIGN | TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x, pt.y, 0, hMenuWnd, nullptr), MPCF_CONTACTMENU, hContact);
- PostMessage(hMenuWnd, WM_NULL, 0, 0);
- DestroyMenu(hMenu);
- DestroyWindow(hMenuWnd);
-}
-
void ShowLog(TCString &LogFilePath)
{
INT_PTR Result = (INT_PTR)ShellExecute(nullptr, L"open", LogFilePath, nullptr, nullptr, SW_SHOW);
|