[PATCH 1/2] comctl32/edit: Add missing message macros.
Nikolay Sivov
nsivov at codeweavers.com
Wed Oct 31 07:57:49 CDT 2018
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/comctl32/edit.c | 2 --
include/commctrl.h | 7 +++++++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/edit.c b/dlls/comctl32/edit.c
index aeba9f73e7..249e08b3a1 100644
--- a/dlls/comctl32/edit.c
+++ b/dlls/comctl32/edit.c
@@ -23,9 +23,7 @@
*
* TODO:
* - EDITBALLOONTIP structure
- * - EM_GETCUEBANNER/Edit_GetCueBannerText
* - EM_HIDEBALLOONTIP/Edit_HideBalloonTip
- * - EM_SETCUEBANNER/Edit_SetCueBannerText
* - EM_SHOWBALLOONTIP/Edit_ShowBalloonTip
* - EM_GETIMESTATUS, EM_SETIMESTATUS
* - EN_ALIGN_LTR_EC
diff --git a/include/commctrl.h b/include/commctrl.h
index 77f460a99d..aed91809d6 100644
--- a/include/commctrl.h
+++ b/include/commctrl.h
@@ -5259,6 +5259,13 @@ typedef struct _tagEDITBALLOONTIP
#define EM_NOSETFOCUS (ECM_FIRST + 7)
#define EM_TAKEFOCUS (ECM_FIRST + 8)
+#define Edit_SetCueBannerText(hwnd, text) \
+ (BOOL)SNDMSG((hwnd), EM_SETCUEBANNER, 0, (LPARAM)(text))
+#define Edit_SetCueBannerTextFocused(hwnd, text, drawfocused) \
+ (BOOL)SNDMSG((hwnd), EM_SETCUEBANNER, (WPARAM)drawfocused, (LPARAM)text)
+#define Edit_GetCueBannerText(hwnd, buff, buff_size) \
+ (BOOL)SNDMSG((hwnd), EM_GETCUEBANNER, (WPARAM)(buff), (LPARAM)(buff_size))
+
/**************************************************************************
* Listbox control
*/
--
2.19.1
More information about the wine-devel
mailing list