/* NewXstatusNotify YM - Plugin for Miranda IM Copyright (c) 2001-2004 Luca Santarelli Copyright (c) 2005-2007 Vasilich Copyright (c) 2007-2011 yaho This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef POPUP_H #define POPUP_H #define POPUP_COLOR_OWN 1 #define POPUP_COLOR_WINDOWS 2 #define POPUP_COLOR_POPUP 3 #define DEFAULT_COLORS POPUP_COLOR_POPUP // Actions on popup click #define PCA_OPENMESSAGEWND 0 // open message window #define PCA_CLOSEPOPUP 1 // close popup #define PCA_OPENDETAILS 2 // open contact details window #define PCA_OPENMENU 3 // open contact menu #define PCA_OPENHISTORY 4 // open contact history #define PCA_DONOTHING 5 // do nothing typedef struct tagPLUGINDATA { uint16_t newStatus; uint16_t oldStatus; HWND hWnd; HANDLE hAwayMsgProcess; HANDLE hAwayMsgHook; } PLUGINDATA; static struct { wchar_t *Text; int Action; } PopupActions[] = { LPGENW("Open message window"), PCA_OPENMESSAGEWND, LPGENW("Close popup"), PCA_CLOSEPOPUP, LPGENW("Open contact details window"), PCA_OPENDETAILS, LPGENW("Open contact menu"), PCA_OPENMENU, LPGENW("Open contact history"), PCA_OPENHISTORY, LPGENW("Do nothing"), PCA_DONOTHING }; void ShowChangePopup(MCONTACT hContact, HICON hIcon, uint16_t newStatus, const wchar_t *stzText, PLUGINDATA *pdp = nullptr); LRESULT CALLBACK PopupDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); #endif