 |
soui 5.0.0.1
Soui5 Doc
|
|
Loading...
Searching...
No Matches
1#ifndef __SWNDMSGCRACKER__H__
2#define __SWNDMSGCRACKER__H__
4#define SOUI_MSG_MAP_BEGIN() \
6 virtual BOOL ProcessSwndMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult) \
9#define SOUI_MSG_MAP_END() \
10 if (!IsMsgHandled()) \
11 return __baseCls::ProcessSwndMessage(uMsg, wParam, lParam, lResult); \
15#define SOUI_MSG_MAP_END_BASE() \
20#define MSG_WM_ERASEBKGND_EX(func) \
21 if (uMsg == WM_ERASEBKGND) \
23 SetMsgHandled(TRUE); \
24 lResult = (LRESULT)func((SNS::IRenderTarget *)wParam); \
30#define MSG_WM_PAINT_EX(func) \
31 if (uMsg == WM_PAINT) \
33 SetMsgHandled(TRUE); \
34 func((SNS::IRenderTarget *)wParam); \
41#define MSG_WM_NCPAINT_EX(func) \
42 if (uMsg == WM_NCPAINT) \
44 SetMsgHandled(TRUE); \
45 func((SNS::IRenderTarget *)wParam); \
52#define MSG_WM_SETFONT_EX(func) \
53 if (uMsg == WM_SETFONT) \
55 SetMsgHandled(TRUE); \
56 func((IFontS *)wParam, (BOOL)LOWORD(lParam)); \
63#define MSG_WM_SETFOCUS_EX(func) \
64 if (uMsg == WM_SETFOCUS) \
66 SetMsgHandled(TRUE); \
74#define MSG_WM_SETFOCUS_EX2(func) \
75 if (uMsg == WM_SETFOCUS) \
77 SetMsgHandled(TRUE); \
78 func((SWND)wParam, (SFocusManager::FocusChangeReason)lParam); \
85#define MSG_WM_KILLFOCUS_EX(func) \
86 if (uMsg == WM_KILLFOCUS) \
88 SetMsgHandled(TRUE); \
96#define MSG_WM_NCMOUSEHOVER(func) \
97 if (uMsg == WM_NCMOUSEHOVER) \
99 SetMsgHandled(TRUE); \
100 func(wParam, CPoint(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam))); \
102 if (IsMsgHandled()) \
107#define MSG_WM_NCMOUSELEAVE(func) \
108 if (uMsg == WM_NCMOUSELEAVE) \
110 SetMsgHandled(TRUE); \
113 if (IsMsgHandled()) \
118#define MSG_WM_TIMER_EX(func) \
119 if (uMsg == WM_TIMER) \
121 SetMsgHandled(TRUE); \
122 func((char)wParam); \
124 if (IsMsgHandled()) \