summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-31 13:09:10 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-31 13:09:10 +0300
commit5b2fa6f292b910409066b2ca748b3f7b8ff020b1 (patch)
tree97408436343ad0144a9b76e4dea1897ee1942d3e /plugins/ExternalAPI
parent6a495da1906284b770f1aceee892d7e60fe1582e (diff)
NewStory:
- fixes #3755 (NewStory: неработающий тэг color парсится криво); - fixes bug with template preview in the options dialog
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r--plugins/ExternalAPI/m_text.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/ExternalAPI/m_text.h b/plugins/ExternalAPI/m_text.h
index d6607e2eb1..d2165802ac 100644
--- a/plugins/ExternalAPI/m_text.h
+++ b/plugins/ExternalAPI/m_text.h
@@ -3,8 +3,14 @@
// Text control
#define MTEXTCONTROLCLASS "MTextControl"
-#define MTM_SETUSER WM_USER
-#define MTM_UPDATE WM_USER+1
+
+#define MTM_SETUSER (WM_USER)
+#define MTM_UPDATE (WM_USER+1)
+
+// analog of calling MTextCreateEx
+// wParam = MTEXT_FLG_*
+// lParam = (void*)text
+#define MTM_UPDATEEX (WM_USER+2)
typedef struct TextObject *HText;