From dd1aac53b981fc57b3fc23ad25bdfd3ce8adc15f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 3 Dec 2023 15:54:00 +0300 Subject: NewStory: a service for returning SRMM dialog that owns NS window --- plugins/ExternalAPI/m_NewStory.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/m_NewStory.h b/plugins/ExternalAPI/m_NewStory.h index 9350672f62..ef2a247426 100644 --- a/plugins/ExternalAPI/m_NewStory.h +++ b/plugins/ExternalAPI/m_NewStory.h @@ -24,6 +24,15 @@ enum NSM_LAST }; +///////////////////////////////////////////////////////////////////////////////////////// +// NS get SRMM dialog +// returns a pointer to the parent SRMM dialog, if used as a log window, or nullptr otherwise + +__forceinline CSrmmBaseDialog* NS_GetSrmm(HANDLE hwnd) +{ + return (CSrmmBaseDialog *)CallService("NewStory/GetSrmm", WPARAM(hwnd), 0); +} + ///////////////////////////////////////////////////////////////////////////////////////// // NS get current event -- cgit v1.2.3