WTL hot key message shunt

xiaoxiao2021-03-06  59

#define hotkey_id_handler (IDHOTKEY, FUNC) / IF (UMSG == WM_HOTKEY && WPARAM == IDHOTKEY) / {/ setmsghand (true); / func (); / lresult = 0; / if (ismsgHand ()) / return true; /}

Code description:

IDHOTKEY is the hotkey ID to be divided,

FUNC is a corresponding message handler.

转载请注明原文地址:https://www.9cbs.com/read-91082.html

New Post(0)