Toast演示
This commit is contained in:
@@ -427,6 +427,9 @@
|
||||
#define c_WinGUI_EventFn_WM_HOTKEY(fn) \
|
||||
void fn(HWND hwnd, int idHotKey, UINT fuModifiers, UINT vk)
|
||||
|
||||
#define c_WinGUI_EventFn_WM_USERDEFINED(fn) \
|
||||
LRESULT fn(HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------------------------ */
|
||||
/* */
|
||||
|
||||
@@ -437,6 +440,9 @@ static LRESULT CALLBACK fn(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam){ \
|
||||
#define c_WinGUI_EventMap(message, fn) \
|
||||
case message: return HANDLE_##message(hwnd, wParam, lParam, fn)
|
||||
|
||||
#define c_WinGUI_UDEventMap(message, fn) \
|
||||
case message: return fn(hwnd, wParam, lParam)
|
||||
|
||||
#define c_WinGUI_EventMapEnd() \
|
||||
default: return DefWindowProc(hwnd, msg, wParam, lParam); \
|
||||
} \
|
||||
@@ -448,4 +454,6 @@ static c_WinGUI_EventFn_##message(fn)
|
||||
#define c_WinGUI_Main() \
|
||||
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
|
||||
|
||||
|
||||
|
||||
#endif /*INCLUDED_C_WINGUI_H*/
|
||||
|
||||
Reference in New Issue
Block a user