source: trunk/Common/alax.info/rowtlcrack.h

Last change on this file was 482, checked in by roman, 7 years ago

Updated copyright notice

  • Property svn:keywords set to Id
File size: 27.7 KB
Line 
1////////////////////////////////////////////////////////////
2// Template class library; extends Widnows SDK, ATL, WTL
3//
4// Copyright (C) Roman Ryltsov, 2006-2015
5// Created by Roman Ryltsov roman@alax.info
6//
7// A permission to re-use this source code is granted as long as copyright notice and
8// reference to source website http://alax.info is retained.
9
10#pragma once
11
12//#include <commctrl.h>
13#include <atlcrack.h>
14
15////////////////////////////////////////////////////////////
16// Notification cracking macros
17
18#define CC_MSG_WM_COMMAND(nCode, nIdentifier, Function) \
19        if(uMsg == WM_COMMAND && HIWORD(wParam)->code == nCode && LOWORD(wParam) == nIdentifier) \
20        { \
21                SetMsgHandled(TRUE); \
22                lResult = Function((UINT) HIWORD(wParam), (INT) LOWORD(wParam), (HWND) lParam); \
23                if(IsMsgHandled()) \
24                        return TRUE; \
25        }
26
27#define CC_MSG_WM_NOTIFY(nCode, Structure, nIdentifier, Function) \
28        if(uMsg == WM_NOTIFY && ((NMHDR*) lParam)->code == nCode && ((NMHDR*) lParam)->idFrom == nIdentifier) \
29        { \
30                SetMsgHandled(TRUE); \
31                lResult = Function((Structure*) lParam); \
32                if(IsMsgHandled()) \
33                        return TRUE; \
34        }
35
36#define MSG_NM_OUTOFMEMORY(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_OUTOFMEMORY, NMHDR, nIdentifier, Function)
37#define MSG_NM_CLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CLICK, NMHDR, nIdentifier, Function) // NMCLICK?
38#define MSG_NM_DBLCLK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_DBLCLK, NMHDR, nIdentifier, Function)
39#define MSG_NM_RETURN(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RETURN, NMHDR, nIdentifier, Function)
40#define MSG_NM_RCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RCLICK, NMHDR, nIdentifier, Function) // NMCLICK?
41#define MSG_NM_RDBLCLK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RDBLCLK, NMHDR, nIdentifier, Function)
42#define MSG_NM_SETFOCUS(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_SETFOCUS, NMHDR, nIdentifier, Function)
43#define MSG_NM_KILLFOCUS(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_KILLFOCUS, NMHDR, nIdentifier, Function)
44#if (_WIN32_IE >= 0x0300)
45#define MSG_NM_CUSTOMDRAW(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CUSTOMDRAW, NMCUSTOMDRAW, nIdentifier, Function)
46#define MSG_NM_HOVER(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_HOVER, NMHDR, nIdentifier, Function)
47#endif // (_WIN32_IE >= 0x0300)
48#if (_WIN32_IE >= 0x0400)
49#define MSG_NM_NCHITTEST(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_NCHITTEST, NMMOUSE, nIdentifier, Function)
50#define MSG_NM_KEYDOWN(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_KEYDOWN, NMKEY, nIdentifier, Function)
51#define MSG_NM_RELEASEDCAPTURE(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RELEASEDCAPTURE, NMHDR, nIdentifier, Function)
52#define MSG_NM_SETCURSOR(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_SETCURSOR, NMMOUSE, nIdentifier, Function)
53#define MSG_NM_CHAR(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CHAR, NMCHAR, nIdentifier, Function)
54#endif // (_WIN32_IE >= 0x0400)
55#if (_WIN32_IE >= 0x0401)
56#define MSG_NM_TOOLTIPSCREATED(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_TOOLTIPSCREATED, NMTOOLTIPSCREATED, nIdentifier, Function)
57#endif // (_WIN32_IE >= 0x0401)
58#if (_WIN32_IE >= 0x0500)
59#define MSG_NM_LDOWN(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_LDOWN, NMHDR, nIdentifier, Function)
60#define MSG_NM_RDOWN(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RDOWN, NMHDR, nIdentifier, Function)
61#define MSG_NM_THEMECHANGED(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_THEMECHANGED, NMKEY, nIdentifier, Function)
62#endif // (_WIN32_IE >= 0x0500)
63
64#if !defined(NOUSER)
65#endif // !defined(NOUSER)
66
67#if !defined(NOIMAGEAPIS)
68#endif // !defined(NOIMAGEAPIS)
69
70#if !defined(NOHEADER)
71#define MSG_HDN_RCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RCLICK, NMHDR, nIdentifier, Function)
72#if (_WIN32_IE >= 0x0300)
73#define MSG_HDN_CUSTOMDRAW(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CUSTOMDRAW, NMCUSTOMDRAW, nIdentifier, Function)
74#endif // (_WIN32_IE >= 0x0300)
75#if (_WIN32_IE >= 0x0400)
76#define MSG_HDN_RELEASEDCAPTURE(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RELEASEDCAPTURE, NMHDR, nIdentifier, Function)
77#endif // (_WIN32_IE >= 0x0400)
78#define MSG_HDN_ITEMCHANGING(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_ITEMCHANGING, NMHEADER, nIdentifier, Function)
79#define MSG_HDN_ITEMCHANGED(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_ITEMCHANGED, NMHEADER, nIdentifier, Function)
80#define MSG_HDN_ITEMCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_ITEMCLICK, NMHEADER, nIdentifier, Function)
81#define MSG_HDN_ITEMDBLCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_ITEMDBLCLICK, NMHEADER, nIdentifier, Function)
82#define MSG_HDN_DIVIDERDBLCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_DIVIDERDBLCLICK, NMHEADER, nIdentifier, Function)
83#define MSG_HDN_BEGINTRACK(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_BEGINTRACK, NMHEADER, nIdentifier, Function)
84#define MSG_HDN_ENDTRACK(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_ENDTRACK, NMHEADER, nIdentifier, Function)
85#define MSG_HDN_TRACK(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_TRACK, NMHEADER, nIdentifier, Function)
86#if (_WIN32_IE >= 0x0300)
87#define MSG_HDN_GETDISPINFO(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_GETDISPINFO, NMHDDISPINFO, nIdentifier, Function)
88#define MSG_HDN_BEGINDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_BEGINDRAG, NMHEADER, nIdentifier, Function)
89#define MSG_HDN_ENDDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_ENDDRAG, NMHEADER, nIdentifier, Function)
90#endif // (_WIN32_IE >= 0x0300)
91#if (_WIN32_IE >= 0x0500)
92#define MSG_HDN_FILTERCHANGE(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_FILTERCHANGE, NMHEADER, nIdentifier, Function)
93#define MSG_HDN_FILTERBTNCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(HDN_FILTERBTNCLICK, NMHDFILTERBTNCLICK, nIdentifier, Function)
94#endif // (_WIN32_IE >= 0x0500)
95#endif // !defined(NOHEADER)
96
97#if !defined(NOTOOLBAR)
98#define MSG_TBN_RCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RCLICK, NMMOUSE, nIdentifier, Function)
99#define MSG_TBN_RDBLCLK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RDBLCLK, NMHDR, nIdentifier, Function)
100#if (_WIN32_IE >= 0x0300)
101#if (_WIN32_IE >= 0x0400)
102#define MSG_TBN_CUSTOMDRAW(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CUSTOMDRAW, NMTBCUSTOMDRAW, nIdentifier, Function) // NMCUSTOMDRAW prior to 4.71
103#else
104#define MSG_TBN_CUSTOMDRAW(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CUSTOMDRAW, NMCUSTOMDRAW, nIdentifier, Function)
105#endif // (_WIN32_IE >= 0x0400)
106#endif // (_WIN32_IE >= 0x0300)
107#if (_WIN32_IE >= 0x0400)
108#define MSG_TBN_KEYDOWN(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_KEYDOWN, NMKEY, nIdentifier, Function)
109#define MSG_TBN_RELEASEDCAPTURE(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RELEASEDCAPTURE, NMHDR, nIdentifier, Function)
110#define MSG_TBN_CHAR(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CHAR, NMCHAR, nIdentifier, Function)
111#endif // (_WIN32_IE >= 0x0400)
112#if (_WIN32_IE >= 0x0401)
113#define MSG_TBN_TOOLTIPSCREATED(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_TOOLTIPSCREATED, NMTOOLTIPSCREATED, nIdentifier, Function)
114#endif // (_WIN32_IE >= 0x0401)
115#if (_WIN32_IE >= 0x0500)
116#define MSG_TBN_LDOWN(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_LDOWN, NMHDR, nIdentifier, Function)
117#endif // (_WIN32_IE >= 0x0500)
118#if !defined(_UNICODE)
119#define MSG_TBN_GETBUTTONINFO(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_GETBUTTONINFO, NMTOOLBAR, nIdentifier, Function)
120#endif // !defined(_UNICODE)
121#define MSG_TBN_BEGINDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_BEGINDRAG, NMTOOLBAR, nIdentifier, Function)
122#define MSG_TBN_ENDDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_ENDDRAG, NMTOOLBAR, nIdentifier, Function)
123#define MSG_TBN_BEGINADJUST(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_BEGINADJUST, NMTOOLBAR, nIdentifier, Function)
124#define MSG_TBN_ENDADJUST(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_ENDADJUST, NMTOOLBAR, nIdentifier, Function)
125#define MSG_TBN_RESET(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_RESET, NMHDR, nIdentifier, Function)
126#define MSG_TBN_QUERYINSERT(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_QUERYINSERT, NMTOOLBAR, nIdentifier, Function)
127#define MSG_TBN_QUERYDELETE(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_QUERYDELETE, NMTOOLBAR, nIdentifier, Function)
128#define MSG_TBN_TOOLBARCHANGE(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_TOOLBARCHANGE, NMHDR, nIdentifier, Function)
129#if (_WIN32_IE >= 0x0300)
130#define MSG_TBN_DROPDOWN(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_DROPDOWN, NMTOOLBAR, nIdentifier, Function)
131#endif // (_WIN32_IE >= 0x0300)
132#if (_WIN32_IE >= 0x0400)
133#define MSG_TBN_GETOBJECT(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_GETOBJECT, NMOBJECTNOTIFY, nIdentifier, Function)
134#define MSG_TBN_HOTITEMCHANGE(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_HOTITEMCHANGE, NMTBHOTITEM, nIdentifier, Function)
135#define MSG_TBN_DRAGOUT(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_DRAGOUT, NMTOOLBAR, nIdentifier, Function)
136#define MSG_TBN_DELETINGBUTTON(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_DELETINGBUTTON, NMTOOLBAR, nIdentifier, Function)
137#define MSG_TBN_GETDISPINFO(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_GETDISPINFOA, NMTBDISPINFO, nIdentifier, Function)
138#define MSG_TBN_GETINFOTIP(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_GETINFOTIPW, NMTBDISPINFO, nIdentifier, Function)
139#if defined(_UNICODE)
140#define MSG_TBN_GETBUTTONINFO(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_GETBUTTONINFO, NMTOOLBAR, nIdentifier, Function)
141#endif // defined(_UNICODE)
142#endif // (_WIN32_IE >= 0x0400)
143#if (_WIN32_IE >= 0x0500)
144#define MSG_TBN_RESTORE(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_RESTORE, NMRESTORE, nIdentifier, Function)
145#define MSG_TBN_SAVE(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_SAVE, NMSAVE, nIdentifier, Function)
146#define MSG_TBN_INITCUSTOMIZE(nIdentifier, Function) CC_MSG_WM_NOTIFY(TBN_INITCUSTOMIZE, NMHDR, nIdentifier, Function)
147#endif // (_WIN32_IE >= 0x0500)
148#endif // !defined(NOTOOLBAR)
149
150#if !defined(NOREBAR)
151#if (_WIN32_IE >= 0x0300)
152#define MSG_RBN_CUSTOMDRAW(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CUSTOMDRAW, NMCUSTOMDRAW, nIdentifier, Function)
153#endif // (_WIN32_IE >= 0x0300)
154#if (_WIN32_IE >= 0x0400)
155#define MSG_RBN_NCHITTEST(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_NCHITTEST, NMMOUSE, nIdentifier, Function)
156#define MSG_RBN_RELEASEDCAPTURE(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RELEASEDCAPTURE, NMHDR, nIdentifier, Function)
157#endif // (_WIN32_IE >= 0x0400)
158#define MSG_RBN_HEIGHTCHANGE(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_HEIGHTCHANGE, NMHDR, nIdentifier, Function)
159#if (_WIN32_IE >= 0x0400)
160#define MSG_RBN_GETOBJECT(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_GETOBJECT, NMOBJECTNOTIFY, nIdentifier, Function)
161#define MSG_RBN_LAYOUTCHANGED(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_LAYOUTCHANGED, NMHDR, nIdentifier, Function)
162#define MSG_RBN_AUTOSIZE(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_AUTOSIZE, NMRBAUTOSIZE, nIdentifier, Function)
163#define MSG_RBN_BEGINDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_BEGINDRAG, NMREBAR, nIdentifier, Function)
164#define MSG_RBN_ENDDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_ENDDRAG, NMREBAR, nIdentifier, Function)
165#define MSG_RBN_DELETINGBAND(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_DELETINGBAND, NMREBAR, nIdentifier, Function)
166#define MSG_RBN_DELETEDBAND(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_DELETEDBAND, NMREBAR, nIdentifier, Function)
167#define MSG_RBN_CHILDSIZE(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_CHILDSIZE, NMREBARCHILDSIZE, nIdentifier, Function)
168#endif // (_WIN32_IE >= 0x0400)
169#if (_WIN32_IE >= 0x0500)
170#define MSG_RBN_CHEVRONPUSHED(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_CHEVRONPUSHED, NMREBARCHEVRON, nIdentifier, Function)
171#define MSG_RBN_MINMAX(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_MINMAX, NMHDR, nIdentifier, Function) // MSDN does not specify header type
172#endif // (_WIN32_IE >= 0x0500)
173#if (_WIN32_WINNT >= 0x0501)
174#define MSG_RBN_AUTOBREAK(nIdentifier, Function) CC_MSG_WM_NOTIFY(RBN_AUTOBREAK, NMREBARAUTOBREAK, nIdentifier, Function)
175#endif // (_WIN32_WINNT >= 0x0501)
176#endif // !defined(NOREBAR)
177
178#if !defined(NOIMAGEAPIS)
179#endif // !defined(NOIMAGEAPIS)
180
181#if !defined(NOTOOLTIPS)
182#if (_WIN32_IE >= 0x0300)
183#define MSG_TTN_CUSTOMDRAW(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CUSTOMDRAW, NMTTCUSTOMDRAW, nIdentifier, Function)
184#endif // (_WIN32_IE >= 0x0300)
185#define MSG_TTN_GETDISPINFO(nIdentifier, Function) CC_MSG_WM_NOTIFY(TTN_GETDISPINFO, NMTTDISPINFO, nIdentifier, Function)
186#define MSG_TTN_SHOW(nIdentifier, Function) CC_MSG_WM_NOTIFY(TTN_SHOW, NMHDR, nIdentifier, Function)
187#define MSG_TTN_POP(nIdentifier, Function) CC_MSG_WM_NOTIFY(TTN_POP, NMHDR, nIdentifier, Function)
188#define MSG_TTN_LINKCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(TTN_LINKCLICK, NMHDR, nIdentifier, Function)
189#endif // !defined(NOTOOLTIPS)
190
191#if !defined(NOSTATUSBAR)
192#define MSG_SBN_CLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CLICK, NMMOUSE, nIdentifier, Function)
193#define MSG_SBN_DBLCLK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_DBLCLK, NMMOUSE, nIdentifier, Function)
194#define MSG_SBN_RCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RCLICK, NMMOUSE, nIdentifier, Function)
195#define MSG_SBN_RDBLCLK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RDBLCLK, NMMOUSE, nIdentifier, Function)
196#if (_WIN32_IE >= 0x0400)
197#define SBN_SIMPLEMODECHANGE    (SBN_FIRST - 0)
198#endif // (_WIN32_IE >= 0x0400)
199#endif // !defined(NOSTATUSBAR)
200
201#if !defined(NOMENUHELP)
202#endif // !defined(NOMENUHELP)
203
204#if !defined(NOTRACKBAR)
205//#if (_WIN32_IE >= 0x0300)
206//#define MSG_TBN_CUSTOMDRAW(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CUSTOMDRAW, NMCUSTOMDRAW, nIdentifier, Function)
207//#endif // (_WIN32_IE >= 0x0300)
208//#if (_WIN32_IE >= 0x0400)
209//#define MSG_TBN_RELEASEDCAPTURE(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RELEASEDCAPTURE, NMHDR, nIdentifier, Function)
210//#endif // (_WIN32_IE >= 0x0400)
211#endif // !defined(NOTRACKBAR)
212
213#if !defined(NODRAGLIST)
214//#define MSG_DL_BEGINDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(DL_BEGINDRAG, DRAGLISTINFO, nIdentifier, Function)
215//#define MSG_DL_DRAGGING(nIdentifier, Function) CC_MSG_WM_NOTIFY(DL_DRAGGING, DRAGLISTINFO, nIdentifier, Function)
216//#define MSG_DL_DROPPED(nIdentifier, Function) CC_MSG_WM_NOTIFY(DL_DROPPED, DRAGLISTINFO, nIdentifier, Function)
217//#define MSG_DL_CANCELDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(DL_CANCELDRAG, DRAGLISTINFO, nIdentifier, Function)
218#endif // !defined(NODRAGLIST)
219
220#if !defined(NOUPDOWN)
221#if (_WIN32_IE >= 0x0400)
222#define MSG_UDN_RELEASEDCAPTURE(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RELEASEDCAPTURE, NMHDR, nIdentifier, Function)
223#endif // (_WIN32_IE >= 0x0400)
224#define MSG_UDN_DELTAPOS(nIdentifier, Function) CC_MSG_WM_NOTIFY(UDN_DELTAPOS, NMUPDOWN, nIdentifier, Function)
225#endif // !defined(NOUPDOWN)
226
227#if !defined(NOPROGRESS)
228#endif // !defined(NOPROGRESS)
229
230#if !defined(NOHOTKEY)
231#endif // !defined(NOHOTKEY)
232
233#if !defined(NOLISTVIEW)
234#if (_WIN32_IE >= 0x0400)
235#define MSG_LVN_CLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CLICK, NMITEMACTIVATE, nIdentifier, Function) // NMHDR prior to 4.71
236#define MSG_LVN_DBLCLK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_DBLCLK, NMITEMACTIVATE, nIdentifier, Function) // NMHDR prior to 4.71
237#else
238#define MSG_LVN_CLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CLICK, NMHDR, nIdentifier, Function)
239#define MSG_LVN_DBLCLK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_DBLCLK, NMHDR, nIdentifier, Function)
240#endif // (_WIN32_IE >= 0x0400)
241#define MSG_LVN_RETURN(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RETURN, NMHDR, nIdentifier, Function)
242#if (_WIN32_IE >= 0x0400)
243#define MSG_LVN_RCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RCLICK, NMITEMACTIVATE, nIdentifier, Function) // NMHDR prior to 4.71
244#define MSG_LVN_RDBLCLK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RDBLCLK, NMITEMACTIVATE, nIdentifier, Function) // NMHDR prior to 4.71
245#else
246#define MSG_LVN_RCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RCLICK, NMHDR, nIdentifier, Function)
247#define MSG_LVN_RDBLCLK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RDBLCLK, NMHDR, nIdentifier, Function)
248#endif // (_WIN32_IE >= 0x0400)
249#define MSG_LVN_SETFOCUS(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_SETFOCUS, NMHDR, nIdentifier, Function)
250#define MSG_LVN_KILLFOCUS(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_KILLFOCUS, NMHDR, nIdentifier, Function)
251#if (_WIN32_IE >= 0x0300)
252#define MSG_LVN_CUSTOMDRAW(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CUSTOMDRAW, NMLVCUSTOMDRAW, nIdentifier, Function)
253#define MSG_LVN_HOVER(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_HOVER, NMHDR, nIdentifier, Function)
254#endif // (_WIN32_IE >= 0x0300)
255#if (_WIN32_IE >= 0x0400)
256#define MSG_LVN_RELEASEDCAPTURE(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RELEASEDCAPTURE, NMHDR, nIdentifier, Function)
257#endif // (_WIN32_IE >= 0x0400)
258#define MSG_LVN_ITEMCHANGING(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_ITEMCHANGING, NMLISTVIEW, nIdentifier, Function)
259#define MSG_LVN_ITEMCHANGED(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_ITEMCHANGED, NMLISTVIEW, nIdentifier, Function)
260#define MSG_LVN_INSERTITEM(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_INSERTITEM, NMLISTVIEW, nIdentifier, Function)
261#define MSG_LVN_DELETEITEM(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_DELETEITEM, NMLISTVIEW, nIdentifier, Function)
262#define MSG_LVN_DELETEALLITEMS(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_DELETEALLITEMS, NMLISTVIEW, nIdentifier, Function)
263#define MSG_LVN_BEGINLABELEDIT(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_BEGINLABELEDIT, NMLVDISPINFO, nIdentifier, Function)
264#define MSG_LVN_ENDLABELEDIT(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_ENDLABELEDIT, NMLVDISPINFO, nIdentifier, Function)
265#define MSG_LVN_COLUMNCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_COLUMNCLICK, NMLISTVIEW, nIdentifier, Function)
266#define MSG_LVN_BEGINDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_BEGINDRAG, NMLISTVIEW, nIdentifier, Function)
267#define MSG_LVN_BEGINRDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_BEGINRDRAG, NMLISTVIEW, nIdentifier, Function)
268#if (_WIN32_IE >= 0x0300)
269#define MSG_LVN_ODCACHEHINT(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_ODCACHEHINT, NMLVCACHEHINT, nIdentifier, Function)
270#define MSG_LVN_ODFINDITEM(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_ODFINDITEM, NMLVFINDITEM, nIdentifier, Function)
271#if (_WIN32_IE >= 0x0400)
272#define MSG_LVN_ITEMACTIVATE(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_ITEMACTIVATE, NMITEMACTIVATE, nIdentifier, Function) // NMHDR prior to 4.71
273#else
274#define MSG_LVN_ITEMACTIVATE(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_ITEMACTIVATE, NMHDR, nIdentifier, Function)
275#endif // (_WIN32_IE >= 0x0400)
276#define MSG_LVN_ODSTATECHANGED(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_ODSTATECHANGED, NMLVODSTATECHANGE, nIdentifier, Function)
277#endif // (_WIN32_IE >= 0x0300)
278#if (_WIN32_IE >= 0x0400)
279#define MSG_LVN_HOTTRACK(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_HOTTRACK, NMLISTVIEW, nIdentifier, Function)
280#endif // (_WIN32_IE >= 0x0400)
281#define MSG_LVN_GETDISPINFO(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_GETDISPINFO, NMLVDISPINFO, nIdentifier, Function)
282#define MSG_LVN_SETDISPINFO(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_SETDISPINFO, NMLVDISPINFO, nIdentifier, Function)
283#define MSG_LVN_KEYDOWN(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_KEYDOWN, NMLVKEYDOWN, nIdentifier, Function)
284#if (_WIN32_IE >= 0x0300)
285#define MSG_LVN_MARQUEEBEGIN(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_MARQUEEBEGIN, NMHDR, nIdentifier, Function)
286#endif // (_WIN32_IE >= 0x0300)
287#if (_WIN32_IE >= 0x0400)
288#define MSG_LVN_GETINFOTIP(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_GETINFOTIP, NMLVGETINFOTIP, nIdentifier, Function)
289#endif // (_WIN32_IE >= 0x0400)
290#if (_WIN32_WINNT >= 0x0501)
291#define MSG_LVN_BEGINSCROLL(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_BEGINSCROLL, NMLVSCROLL, nIdentifier, Function)
292#define MSG_LVN_ENDSCROLL(nIdentifier, Function) CC_MSG_WM_NOTIFY(LVN_ENDSCROLL, NMLVSCROLL, nIdentifier, Function)
293#endif // (_WIN32_WINNT >= 0x0501)
294#endif // !defined(NOLISTVIEW)
295
296#if !defined(NOTREEVIEW)
297#define MSG_TVN_CLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CLICK, NMHDR, nIdentifier, Function)
298#define MSG_TVN_DBLCLK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_DBLCLK, NMHDR, nIdentifier, Function)
299#define MSG_TVN_RETURN(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RETURN, NMHDR, nIdentifier, Function)
300#define MSG_TVN_RCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RCLICK, NMHDR, nIdentifier, Function)
301#define MSG_TVN_RDBLCLK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RDBLCLK, NMHDR, nIdentifier, Function)
302#define MSG_TVN_SETFOCUS(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_SETFOCUS, NMHDR, nIdentifier, Function)
303#define MSG_TVN_KILLFOCUS(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_KILLFOCUS, NMHDR, nIdentifier, Function)
304#if (_WIN32_IE >= 0x0300)
305#define MSG_TVN_CUSTOMDRAW(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CUSTOMDRAW, NMTVCUSTOMDRAW, nIdentifier, Function)
306#endif // (_WIN32_IE >= 0x0300)
307#if (_WIN32_IE >= 0x0400)
308#define MSG_TVN_SETCURSOR(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_SETCURSOR, NMMOUSE, nIdentifier, Function)
309#endif // (_WIN32_IE >= 0x0400)
310#define MSG_TVN_SELCHANGING(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_SELCHANGING, NMTREEVIEW, nIdentifier, Function)
311#define MSG_TVN_SELCHANGED(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_SELCHANGED, NMTREEVIEW, nIdentifier, Function)
312#define MSG_TVN_GETDISPINFO(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_GETDISPINFO, NMTVDISPINFO, nIdentifier, Function)
313#define MSG_TVN_SETDISPINFO(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_SETDISPINFO, NMTVDISPINFO, nIdentifier, Function)
314#define MSG_TVN_ITEMEXPANDING(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_ITEMEXPANDING, NMTREEVIEW, nIdentifier, Function)
315#define MSG_TVN_ITEMEXPANDED(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_ITEMEXPANDED, NMTREEVIEW, nIdentifier, Function)
316#define MSG_TVN_BEGINDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_BEGINDRAG, NMTREEVIEW, nIdentifier, Function)
317#define MSG_TVN_BEGINRDRAG(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_BEGINRDRAG, NMTREEVIEW, nIdentifier, Function)
318#define MSG_TVN_DELETEITEM(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_DELETEITEM, NMTREEVIEW, nIdentifier, Function)
319#define MSG_TVN_BEGINLABELEDIT(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_BEGINLABELEDIT, NMTVDISPINFO, nIdentifier, Function)
320#define MSG_TVN_ENDLABELEDIT(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_ENDLABELEDIT, NMTVDISPINFO, nIdentifier, Function)
321#define MSG_TVN_KEYDOWN(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_KEYDOWN, NMTVKEYDOWN, nIdentifier, Function)
322#if (_WIN32_IE >= 0x0400)
323#define MSG_TVN_GETINFOTIP(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_GETINFOTIP, NMTVGETINFOTIP, nIdentifier, Function)
324#define MSG_TVN_SINGLEEXPAND(nIdentifier, Function) CC_MSG_WM_NOTIFY(TVN_SINGLEEXPAND, NMTREEVIEW, nIdentifier, Function)
325#endif // (_WIN32_IE >= 0x0400)
326#endif // !defined(NOTREEVIEW)
327
328#if !defined(NOUSEREXCONTROLS)
329#if (_WIN32_IE >= 0x0400)
330#define MSG_CBEN_SETCURSOR(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_SETCURSOR, NMMOUSE, nIdentifier, Function)
331#endif // (_WIN32_IE >= 0x0400)
332#define MSG_CBEN_INSERTITEM(nIdentifier, Function) CC_MSG_WM_NOTIFY(CBEN_INSERTITEM, NMCOMBOBOXEX, nIdentifier, Function)
333#define MSG_CBEN_DELETEITEM(nIdentifier, Function) CC_MSG_WM_NOTIFY(CBEN_DELETEITEM, NMCOMBOBOXEX, nIdentifier, Function)
334#define MSG_CBEN_BEGINEDIT(nIdentifier, Function) CC_MSG_WM_NOTIFY(CBEN_BEGINEDIT, NMHDR, nIdentifier, Function)
335#define MSG_CBEN_ENDEDIT(nIdentifier, Function) CC_MSG_WM_NOTIFY(CBEN_ENDEDIT, NMCBEENDEDIT, nIdentifier, Function)
336#if (_WIN32_IE >= 0x0400)
337#define MSG_CBEN_GETDISPINFO(nIdentifier, Function) CC_MSG_WM_NOTIFY(CBEN_GETDISPINFO, NMCOMBOBOXEX, nIdentifier, Function)
338#define MSG_CBEN_DRAGBEGIN(nIdentifier, Function) CC_MSG_WM_NOTIFY(CBEN_DRAGBEGIN, NMCBEDRAGBEGIN, nIdentifier, Function)
339#endif // (_WIN32_IE >= 0x0400)
340#endif // !defined(NOUSEREXCONTROLS)
341
342#if !defined(NOTABCONTROL)
343#define MSG_TCN_CLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CLICK, NMHDR, nIdentifier, Function)
344#define MSG_TCN_RCLICK(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RCLICK, NMHDR, nIdentifier, Function)
345#if (_WIN32_IE >= 0x0400)
346#define MSG_TCN_RELEASEDCAPTURE(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RELEASEDCAPTURE, NMHDR, nIdentifier, Function)
347#endif // (_WIN32_IE >= 0x0400)
348#define MSG_TCN_KEYDOWN(nIdentifier, Function) CC_MSG_WM_NOTIFY(TCN_KEYDOWN, NMTCKEYDOWN, nIdentifier, Function)
349#define MSG_TCN_SELCHANGE(nIdentifier, Function) CC_MSG_WM_NOTIFY(TCN_SELCHANGE, NMHDR, nIdentifier, Function)
350#define MSG_TCN_SELCHANGING(nIdentifier, Function) CC_MSG_WM_NOTIFY(TCN_SELCHANGING, NMHDR, nIdentifier, Function)
351#if (_WIN32_IE >= 0x0400)
352#define MSG_TCN_GETOBJECT(nIdentifier, Function) CC_MSG_WM_NOTIFY(TCN_GETOBJECT, NMOBJECTNOTIFY, nIdentifier, Function)
353#endif // (_WIN32_IE >= 0x0400)
354#if (_WIN32_IE >= 0x0500)
355#define MSG_TCN_FOCUSCHANGE(nIdentifier, Function) CC_MSG_WM_NOTIFY(TCN_FOCUSCHANGE, NMHDR, nIdentifier, Function) // MSDN does not specify header type
356#endif // (_WIN32_IE >= 0x0500)
357#endif // !defined(NOTABCONTROL)
358
359#if !defined(NOANIMATE)
360#define MSG_ACN_START(nIdentifier, Function) CC_MSG_WM_COMMAND(ACN_START, nIdentifier, Function)
361#define MSG_ACN_STOP(nIdentifier, Function) CC_MSG_WM_COMMAND(ACN_STOP, nIdentifier, Function)
362#endif // !defined(NOANIMATE)
363
364#if !defined(NOMONTHCAL)
365#if (_WIN32_IE >= 0x0400)
366#define MSG_MCN_RELEASEDCAPTURE(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_RELEASEDCAPTURE, NMHDR, nIdentifier, Function)
367#endif // (_WIN32_IE >= 0x0400)
368#define MSG_MCN_SELCHANGE(nIdentifier, Function) CC_MSG_WM_NOTIFY(MCN_SELCHANGE, NMSELCHANGE, nIdentifier, Function)
369#define MSG_MCN_GETDAYSTATE(nIdentifier, Function) CC_MSG_WM_NOTIFY(MCN_GETDAYSTATE, NMDAYSTATE, nIdentifier, Function)
370#define MSG_MCN_SELECT(nIdentifier, Function) CC_MSG_WM_NOTIFY(MCN_SELECT, NMSELCHANGE, nIdentifier, Function)
371#endif // !defined(NOMONTHCAL)
372
373#if !defined(NODATETIMEPICK)
374#define MSG_DTN_SETFOCUS(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_SETFOCUS, NMHDR, nIdentifier, Function)
375#define MSG_DTN_KILLFOCUS(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_KILLFOCUS, NMHDR, nIdentifier, Function)
376#define MSG_DTN_DATETIMECHANGE(nIdentifier, Function) CC_MSG_WM_NOTIFY(DTN_DATETIMECHANGE, NMDATETIMECHANGE, nIdentifier, Function)
377#define MSG_DTN_USERSTRING(nIdentifier, Function) CC_MSG_WM_NOTIFY(DTN_USERSTRINGW, NMDATETIMESTRING, nIdentifier, Function)
378#define MSG_DTN_WMKEYDOWN(nIdentifier, Function) CC_MSG_WM_NOTIFY(DTN_WMKEYDOWNA, NMDATETIMEWMKEYDOWN, nIdentifier, Function)
379#define MSG_DTN_FORMAT(nIdentifier, Function) CC_MSG_WM_NOTIFY(DTN_FORMATA, NMDATETIMEFORMAT, nIdentifier, Function)
380#define MSG_DTN_FORMATQUERY(nIdentifier, Function) CC_MSG_WM_NOTIFY(DTN_FORMATQUERYW, NMDATETIMEFORMATQUERY, nIdentifier, Function)
381#define MSG_DTN_DROPDOWN(nIdentifier, Function) CC_MSG_WM_NOTIFY(DTN_DROPDOWN, NMHDR, nIdentifier, Function)
382#define MSG_DTN_CLOSEUP(nIdentifier, Function) CC_MSG_WM_NOTIFY(DTN_CLOSEUP, NMHDR, nIdentifier, Function)
383#endif // !defined(NODATETIMEPICK)
384
385#if !defined(NOIPADDRESS)
386#define MSG_IPN_FIELDCHANGED(nIdentifier, Function) CC_MSG_WM_NOTIFY(IPN_FIELDCHANGED, NMIPADDRESS, nIdentifier, Function)
387#endif // !defined(NOIPADDRESS)
388
389#if !defined(NOPAGESCROLLER)
390#endif // !defined(NOPAGESCROLLER)
391
392#if !defined(NONATIVEFONTCTL)
393#endif // !defined(NONATIVEFONTCTL)
394
395#if !defined(NOBUTTON)
396#if (_WIN32_IE >= 0x0300)
397#define MSG_BCN_CUSTOMDRAW(nIdentifier, Function) CC_MSG_WM_NOTIFY(NM_CUSTOMDRAW, NMCUSTOMDRAW, nIdentifier, Function)
398#endif // (_WIN32_IE >= 0x0300)
399#define MSG_BCN_HOTITEMCHANGE(nIdentifier, Function) CC_MSG_WM_NOTIFY(BCN_HOTITEMCHANGE, NMBCHOTITEM, nIdentifier, Function)
400#endif // !defined(NOBUTTON)
401
402#if !defined(NOSTATIC)
403#endif // !defined(NOSTATIC)
404
405#if !defined(NOEDIT)
406#endif // !defined(NOEDIT)
407
408#if !defined(NOLISTBOX)
409#endif // !defined(NOLISTBOX)
410
411#if !defined(NOCOMBOBOX)
412#endif // !defined(NOCOMBOBOX)
413
414#if !defined(NOSCROLLBAR)
415#endif // !defined(NOSCROLLBAR)
416
417#if !defined(NOMUI)
418#endif // !defined(NOMUI)
419
420#if !defined(NOTRACKMOUSEEVENT)
421#endif // !defined(NOTRACKMOUSEEVENT)
422
423#if !defined(NOFLATSBAPIS)
424#endif // !defined(NOFLATSBAPIS)
Note: See TracBrowser for help on using the repository browser.