diff options
Diffstat (limited to 'include/m_popup.h')
-rw-r--r-- | include/m_popup.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/m_popup.h b/include/m_popup.h index b715345c40..1a633ac14b 100644 --- a/include/m_popup.h +++ b/include/m_popup.h @@ -332,7 +332,22 @@ typedef struct { // wParam = 0
// lParam = (POPUPCLASS *)&pc
-#define MS_POPUP_REGISTERCLASS "PopUp/RegisterClass"
+#define MS_POPUP_REGISTERCLASS "PopUp/RegisterClass"
+
+HANDLE __forceinline Popup_RegisterClass(POPUPCLASS *pc)
+{
+ if ( !ServiceExists(MS_POPUP_REGISTERCLASS))
+ return NULL;
+ return (HANDLE)CallService(MS_POPUP_REGISTERCLASS, 0, LPARAM(pc));
+}
+
+#define MS_POPUP_UNREGISTERCLASS "PopUp/UnregisterClass"
+
+void __forceinline Popup_UnregisterClass(HANDLE ppc)
+{
+ if (ppc)
+ CallService(MS_POPUP_UNREGISTERCLASS, 0, LPARAM(ppc));
+}
typedef struct {
int cbSize;
|