[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: [PATCH 1/2] comctl32/edit: Add missing message macros.
From: Nikolay Sivov <nsivov () codeweavers ! com>
Date: 2018-10-31 12:57:49
Message-ID: 20181031125750.5222-1-nsivov () codeweavers ! com
[Download RAW message or body]
Signed-off-by: Nikolay Sivov <nsivov@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic