Added HANDLE_WM_NOTIFY and FORWARD_WM_NOTIFY.

This commit is contained in:
Francois Gouget 2000-09-22 22:17:10 +00:00 committed by Alexandre Julliard
parent e8aa1b98a0
commit 2fa2cf726a
1 changed files with 6 additions and 0 deletions

View File

@ -102,6 +102,12 @@ VOID WINAPI InitMUILanguage (LANGID uiLang);
#define NM_CHAR (NM_FIRST-18) #define NM_CHAR (NM_FIRST-18)
#define NM_TOOLTIPSCREATED (NM_FIRST-19) #define NM_TOOLTIPSCREATED (NM_FIRST-19)
#define HANDLE_WM_NOTIFY(hwnd, wParam, lParam, fn) \
(fn)((hwnd), (int)(wParam), (NMHDR*)(lParam))
#define FORWARD_WM_NOTIFY(hwnd, idFrom, pnmhdr, fn) \
(LRESULT)(fn)((hwnd), WM_NOTIFY, (WPARAM)(int)(idFrom), (LPARAM)(NMHDR*)(pnmhdr))
/* callback constants */ /* callback constants */
#define LPSTR_TEXTCALLBACKA ((LPSTR)-1L) #define LPSTR_TEXTCALLBACKA ((LPSTR)-1L)
#define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L) #define LPSTR_TEXTCALLBACKW ((LPWSTR)-1L)