From 63ed39f2286560d410b97b6b6ad75e9ed68cd30e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 5 Nov 2023 15:27:21 +0300 Subject: Popup+ specific functionality localized inside Popup+ --- include/m_popup.h | 58 --------------------------------------------------- include/m_popup_int.h | 1 - 2 files changed, 59 deletions(-) (limited to 'include') diff --git a/include/m_popup.h b/include/m_popup.h index 039b05e9fe..48c264ed56 100644 --- a/include/m_popup.h +++ b/include/m_popup.h @@ -243,64 +243,6 @@ __forceinline int PUModifyActionIcon(HWND hWndPopup, WPARAM wParam, LPARAM lPara EXTERN_C MIR_APP_DLL(int) PURegisterActions(POPUPACTION *actions, int count); -// Popup/RegisterNotification -// Registers your action in popup action list -// wParam = (WPARAM)(LPPOPUPNOTIFICATION)info -// lParam = 0 -// Returns: handle of registered notification or sero on failure - -#define PNAF_CALLBACK 0x01 - -#define POPUP_ACTION_NOTHING LPGEN("Do nothing") -#define POPUP_ACTION_DISMISS LPGEN("Dismiss popup") - -struct POPUPNOTIFYACTION -{ - char lpzTitle[64]; - uint32_t dwFlags; - union - { - struct - { - char lpzLModule[MAXMODULELABELLENGTH]; - char lpzLSetting[MAXMODULELABELLENGTH]; - DBVARIANT dbvLData; - char lpzRModule[MAXMODULELABELLENGTH]; - char lpzRSetting[MAXMODULELABELLENGTH]; - DBVARIANT dbvRData; - }; - struct - { - uint32_t dwCookie; - void(*pfnCallback)(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam, uint32_t cookie); - }; - }; -}; - -#define PNF_CONTACT 0x01 - -struct POPUPNOTIFICATION -{ - int cbSize; - uint32_t dwFlags; // set of PNF_* flags - char lpzGroup[MAXMODULELABELLENGTH]; - char lpzName[MAXMODULELABELLENGTH]; - HANDLE lchIcoLib; // gotten from icolib - COLORREF colorBack; // this will be registered in fontservice - COLORREF colorText; // this will be registered in fontservice - int iSeconds; // default timeout - int actionCount; // for unified action comboboxes - POPUPNOTIFYACTION *lpActions; - char *lpzLAction; - char *lpzRAction; - char *pszReserved1; // reserved for future use - #ifdef _WINDOWS - DLGPROC pfnReserved2; // reserved for future use - #endif -}; - -EXTERN_C MIR_APP_DLL(HANDLE) PURegisterNotification(POPUPNOTIFICATION *notification); - /* Popup/UnhookEventAsync Using of "UnhookEvent" inside PluginWindowProc in conjunction with HookEventMessage may cause deadlocks. Use this service instead. It will queue event unhook into main diff --git a/include/m_popup_int.h b/include/m_popup_int.h index b241f7bebe..6860759174 100644 --- a/include/m_popup_int.h +++ b/include/m_popup_int.h @@ -31,7 +31,6 @@ #define MS_POPUP_GETCONTACT "Popup/GetContact" #define MS_POPUP_REGISTERACTIONS "Popup/RegisterActions" -#define MS_POPUP_REGISTERNOTIFICATION "Popup/RegisterNotification" #define MS_POPUP_SHOWMESSAGE "Popup/ShowMessage" #define MS_POPUP_SHOWMESSAGEW "Popup/ShowMessageW" -- cgit v1.2.3