📄 group__msg__hook__fns.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: Message or event hook functions</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>Message or event hook functions<br><small>[<a class="el" href="group__msg__fns.htm">Message functions</a>]</small></h1><h2>Data Structures</h2><ul><li>struct <a class="el" href="struct__HOOKINFO.htm">_HOOKINFO</a></ul><h2>Defines</h2><ul><li>#define <a class="el" href="group__msg__hook__fns.htm#ga4">HOOK_GOON</a> 0<li>#define <a class="el" href="group__msg__hook__fns.htm#ga5">HOOK_STOP</a> 1</ul><h2>Typedefs</h2><ul><li>typedef int(* <a class="el" href="group__msg__hook__fns.htm#ga0">MSGHOOK</a> )(void *context, <a class="el" href="group__handles.htm#ga1">HWND</a> dst_wnd, int msg, <a class="el" href="group__win32__types.htm#ga8">WPARAM</a> wparam, <a class="el" href="group__win32__types.htm#ga9">LPARAM</a> lparam)<dl class="el"><dd class="mdescRight">Type of message hook function. <a href="#ga0"></a><br></dl><li>typedef <a class="el" href="struct__HOOKINFO.htm">_HOOKINFO</a> <a class="el" href="group__msg__hook__fns.htm#ga1">HOOKINFO</a></ul><h2>Functions</h2><ul><li>MG_EXPORT <a class="el" href="group__msg__hook__fns.htm#ga0">MSGHOOK</a> GUIAPI <a class="el" href="group__msg__hook__fns.htm#ga2">RegisterKeyMsgHook</a> (void *context, <a class="el" href="group__msg__hook__fns.htm#ga0">MSGHOOK</a> hook)<dl class="el"><dd class="mdescRight">Registers a key message hook. <a href="#ga2"></a><br></dl><li>MG_EXPORT <a class="el" href="group__msg__hook__fns.htm#ga0">MSGHOOK</a> GUIAPI <a class="el" href="group__msg__hook__fns.htm#ga3">RegisterMouseMsgHook</a> (void *context, <a class="el" href="group__msg__hook__fns.htm#ga0">MSGHOOK</a> hook)<dl class="el"><dd class="mdescRight">Registers a mouse message hook. <a href="#ga3"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga4" doxytag="window.h::HOOK_GOON"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define HOOK_GOON 0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>See also:</b></dt><dd>SRVEVTHOOK RegisterKeyHookWindow RegisterMouseHookWindow </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l02479">2479</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="ga5" doxytag="window.h::HOOK_STOP"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define HOOK_STOP 1 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>See also:</b></dt><dd>SRVEVTHOOK RegisterKeyHookWindow RegisterMouseHookWindow </dd></dl><p>Definition at line <a class="el" href="window_8h-source.htm#l02485">2485</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga1" doxytag="window.h::HOOKINFO"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">typedef struct <a class="el" href="struct__HOOKINFO.htm">_HOOKINFO</a> <a class="el" href="struct__HOOKINFO.htm">HOOKINFO</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Structure defines a message hook. </td> </tr></table><a class="anchor" name="ga0" doxytag="window.h::MSGHOOK"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">typedef int(* <a class="el" href="group__msg__hook__fns.htm#ga0">MSGHOOK</a>)(void *context, <a class="el" href="group__handles.htm#ga1">HWND</a> dst_wnd, int msg, <a class="el" href="group__win32__types.htm#ga8">WPARAM</a> wparam, <a class="el" href="group__win32__types.htm#ga9">LPARAM</a> lparam) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Type of message hook function. <p><p>Definition at line <a class="el" href="window_8h-source.htm#l02495">2495</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga2" doxytag="window.h::RegisterKeyMsgHook"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__msg__hook__fns.htm#ga0">MSGHOOK</a> GUIAPI RegisterKeyMsgHook </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void * </td> <td class="mdname" nowrap> <em>context</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__msg__hook__fns.htm#ga0">MSGHOOK</a> </td> <td class="mdname" nowrap> <em>hook</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Registers a key message hook. <p>This function registers a key message hook pointed to by <em>hook</em>.<p>When the desktop receives a key message, it will send it to the hook first, and passes the <em>context</em> value to the hook as the first argument.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>The context value will be passed to the hook. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hook</em> </td><td>The hook. This function will unregister the old hook if <em>hook</em> is NULL. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old hook.</dd></dl><dl compact><dt><b>See also:</b></dt><dd>UnregisterHook, KEYMSGHOOK </dd></dl> </td> </tr></table><a class="anchor" name="ga3" doxytag="window.h::RegisterMouseMsgHook"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__msg__hook__fns.htm#ga0">MSGHOOK</a> GUIAPI RegisterMouseMsgHook </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void * </td> <td class="mdname" nowrap> <em>context</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__msg__hook__fns.htm#ga0">MSGHOOK</a> </td> <td class="mdname" nowrap> <em>hook</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Registers a mouse message hook. <p>This function registers a mouse message hook pointed to by <em>hook</em>.<p>When the desktop receives a mouse message, it will send it to the hook first, and passes the <em>context</em> value to the hook as the first argument.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>context</em> </td><td>The context value will be passed to the hook. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hook</em> </td><td>The hook. This function will unregister the old hook if <em>hook</em> is NULL. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old hook.</dd></dl><dl compact><dt><b>See also:</b></dt><dd>UnregisterHook, KEYMSGHOOK </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:55 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -