diff options
| author | George Hazan <george.hazan@gmail.com> | 2023-12-03 15:54:00 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2023-12-03 15:54:00 +0300 |
| commit | dd1aac53b981fc57b3fc23ad25bdfd3ce8adc15f (patch) | |
| tree | 0da69ce043ef952596dbe714a3fc9f2982a6254e /plugins/ExternalAPI | |
| parent | 0805744c4b2f73149d27f5fbadb767d3d5bd50b1 (diff) | |
NewStory: a service for returning SRMM dialog that owns NS window
Diffstat (limited to 'plugins/ExternalAPI')
| -rw-r--r-- | plugins/ExternalAPI/m_NewStory.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ -25,6 +25,15 @@ enum }; ///////////////////////////////////////////////////////////////////////////////////////// +// 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 __forceinline MEVENT NS_GetCurrent(HANDLE hwnd) |
