📄 group__accel__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: Accelerator operations</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>Accelerator operations<br><small>[<a class="el" href="group__window__create__fns.htm">Window creating/destroying</a>]</small></h1><h2>Functions</h2><ul><li>MG_EXPORT <a class="el" href="group__handles.htm#ga7">HACCEL</a> GUIAPI <a class="el" href="group__accel__fns.htm#ga0">CopyAcceleratorTable</a> (<a class="el" href="group__handles.htm#ga7">HACCEL</a> hacc)<dl class="el"><dd class="mdescRight">Copies the specified accelerator table. <a href="#ga0"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__accel__fns.htm#ga1">DeleteAccelerators</a> (<a class="el" href="group__handles.htm#ga7">HACCEL</a> hacc, int key, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> keymask)<dl class="el"><dd class="mdescRight">Deletes an accelerator from the accelerator table. <a href="#ga1"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__accel__fns.htm#ga2">AddAccelerators</a> (<a class="el" href="group__handles.htm#ga7">HACCEL</a> hacc, int key, <a class="el" href="group__win32__types.htm#ga4">DWORD</a> keymask, <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">Adds an accelerator to the accelerator table. <a href="#ga2"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__accel__fns.htm#ga3">DestroyAcceleratorTable</a> (<a class="el" href="group__handles.htm#ga7">HACCEL</a> hacc)<dl class="el"><dd class="mdescRight">Destroys an accelerator table. <a href="#ga3"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga7">HACCEL</a> GUIAPI <a class="el" href="group__accel__fns.htm#ga4">CreateAcceleratorTable</a> (<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd)<dl class="el"><dd class="mdescRight">Creates an empty accelerator table. <a href="#ga4"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__accel__fns.htm#ga5">TranslateAccelerator</a> (<a class="el" href="group__handles.htm#ga7">HACCEL</a> hAccel, <a class="el" href="struct__MSG.htm">PMSG</a> pMsg)<dl class="el"><dd class="mdescRight">Translates an accelerator key message to MSG_COMMAND messge and sends it to the window procedure. <a href="#ga5"></a><br></dl></ul><hr><h2>Function Documentation</h2><a class="anchor" name="ga2" doxytag="window.h::AddAccelerators"></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">int GUIAPI AddAccelerators </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga7">HACCEL</a> </td> <td class="mdname" nowrap> <em>hacc</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>key</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga4">DWORD</a> </td> <td class="mdname" nowrap> <em>keymask</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga8">WPARAM</a> </td> <td class="mdname" nowrap> <em>wParam</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga9">LPARAM</a> </td> <td class="mdname" nowrap> <em>lParam</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>Adds an accelerator to the accelerator table. <p>This function adds an accelerator to the accelerator table. It's called after you call <em>CreateAcceleratorTable</em> function.<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>hacc</em> </td><td>The handle to the accelerator table. </td></tr> <tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>The key value of the accelerator. Note that you can define the key value by either scancode or ASCII code. If you define the key with scancode, the key value should be equal to (scancode + 256). </td></tr> <tr><td valign="top"></td><td valign="top"><em>keymask</em> </td><td>The shift key state, can be OR'ed value of the following values:<ul><li>KS_SHIFT<br> Shift key should be pressed.</li><li>KS_ALT<br> Alt key should be pressed.</li><li>KS_CTRL<br> Ctrl key should be pressed. </li></ul></td></tr> <tr><td valign="top"></td><td valign="top"><em>wParam</em> </td><td>The first parameter of the MSG_COMMAND when receiving such a accelerator key. </td></tr> <tr><td valign="top"></td><td valign="top"><em>lParam</em> </td><td>The second parameter of the MSG_COMMAND when receiving such a accelerator key. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The function returns 0 for success, non-zero for failure.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__accel__fns.htm#ga4">CreateAcceleratorTable</a>, <a class="el" href="group__accel__fns.htm#ga1">DeleteAccelerators</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga0" doxytag="window.h::CopyAcceleratorTable"></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__handles.htm#ga7">HACCEL</a> GUIAPI CopyAcceleratorTable </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga7">HACCEL</a> </td> <td class="mdname1" valign="top" nowrap> <em>hacc</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Copies the specified accelerator table. <p>This function copies the specified accelerator table. The function is used to obtain the accelerator table data that corresponds to an accelerator table handle.<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>hacc</em> </td><td>The handle to the accelerator table. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The handle to the copied new accelerator table. </dd></dl> </td> </tr></table><a class="anchor" name="ga4" doxytag="window.h::CreateAcceleratorTable"></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__handles.htm#ga7">HACCEL</a> GUIAPI CreateAcceleratorTable </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname1" valign="top" nowrap> <em>hWnd</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates an empty accelerator table. <p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -