Toast演示

This commit is contained in:
2026-07-28 23:35:51 +08:00
parent a222cf81bb
commit 8bd6453415
9 changed files with 460 additions and 4 deletions
+8
View File
@@ -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*/