📄 struct__menuiteminfo.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: _MENUITEMINFO Struct Reference</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>_MENUITEMINFO Struct Reference<br><small>[<a class="el" href="group__menu__fns.htm">Menu operations</a>]</small></h1><code>#include <<a class="el" href="window_8h-source.htm">window.h</a>></code><p><h2>Data Fields</h2><ul><li><a class="el" href="group__win32__types.htm#ga6">UINT</a> <a class="el" href="struct__MENUITEMINFO.htm#o0">mask</a><li><a class="el" href="group__win32__types.htm#ga6">UINT</a> <a class="el" href="struct__MENUITEMINFO.htm#o1">type</a><li><a class="el" href="group__win32__types.htm#ga6">UINT</a> <a class="el" href="struct__MENUITEMINFO.htm#o2">state</a><li>int <a class="el" href="struct__MENUITEMINFO.htm#o3">id</a><li><a class="el" href="group__handles.htm#ga6">HMENU</a> <a class="el" href="struct__MENUITEMINFO.htm#o4">hsubmenu</a><li><a class="el" href="struct__BITMAP.htm">PBITMAP</a> <a class="el" href="struct__MENUITEMINFO.htm#o5">uncheckedbmp</a><li><a class="el" href="struct__BITMAP.htm">PBITMAP</a> <a class="el" href="struct__MENUITEMINFO.htm#o6">checkedbmp</a><li><a class="el" href="group__win32__types.htm#ga4">DWORD</a> <a class="el" href="struct__MENUITEMINFO.htm#o7">itemdata</a><li><a class="el" href="group__win32__types.htm#ga4">DWORD</a> <a class="el" href="struct__MENUITEMINFO.htm#o8">typedata</a><li><a class="el" href="group__win32__types.htm#ga6">UINT</a> <a class="el" href="struct__MENUITEMINFO.htm#o9">cch</a></ul><hr><a name="_details"></a><h2>Detailed Description</h2>Structure defines a menu item <p><p>Definition at line <a class="el" href="window_8h-source.htm#l06024">6024</a> of file <a class="el" href="window_8h-source.htm">window.h</a>.<hr><h2>Field Documentation</h2><a class="anchor" name="o9" doxytag="_MENUITEMINFO::cch"></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__win32__types.htm#ga6">UINT</a> <a class="el" href="struct__MENUITEMINFO.htm#o9">cch</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Used by <em>GetMenuItemInfo</em> function to indicate the maximal length of the string <p>Definition at line <a class="el" href="window_8h-source.htm#l06106">6106</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="o6" doxytag="_MENUITEMINFO::checkedbmp"></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="struct__BITMAP.htm">PBITMAP</a> <a class="el" href="struct__MENUITEMINFO.htm#o6">checkedbmp</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The pointer to a BITMAP object used for checked bitmap menu item <p>Definition at line <a class="el" href="window_8h-source.htm#l06094">6094</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="o4" doxytag="_MENUITEMINFO::hsubmenu"></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#ga6">HMENU</a> <a class="el" href="struct__MENUITEMINFO.htm#o4">hsubmenu</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The handle to the sub-menu if this menu contains a sub menu <p>Definition at line <a class="el" href="window_8h-source.htm#l06088">6088</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="o3" doxytag="_MENUITEMINFO::id"></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 <a class="el" href="struct__MENUITEMINFO.htm#o3">id</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The identifier of the menu item <p>Definition at line <a class="el" href="window_8h-source.htm#l06085">6085</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="o7" doxytag="_MENUITEMINFO::itemdata"></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__win32__types.htm#ga4">DWORD</a> <a class="el" href="struct__MENUITEMINFO.htm#o7">itemdata</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The private data attached to the menu item <p>Definition at line <a class="el" href="window_8h-source.htm#l06097">6097</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="o0" doxytag="_MENUITEMINFO::mask"></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__win32__types.htm#ga6">UINT</a> <a class="el" href="struct__MENUITEMINFO.htm#o0">mask</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Used by <em>GetMenuItemInfo</em> and <em>SetMenuItemInfo</em> functions, can be OR'ed with the following values:<ul><li>MIIM_STATE<br> Get/set the state of the menu item.</li><li>MIIM_ID<br> Get/set the identifier of the menu item.</li><li>MIIM_SUBMENU<br> Get/set the sub-menu of the menu item.</li><li>MIIM_CHECKMARKS<br> Get/set the check/uncheck bitmap.</li><li>MIIM_TYPE<br> Get/set the type and the type data of the menu item.</li><li>MIIM_DATA<br> Get/set the item data of the menu item. </li></ul><p>Definition at line <a class="el" href="window_8h-source.htm#l06042">6042</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="o2" doxytag="_MENUITEMINFO::state"></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__win32__types.htm#ga6">UINT</a> <a class="el" href="struct__MENUITEMINFO.htm#o2">state</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>State of the menu item, can be one of the following values:<ul><li>MFS_GRAYED<br> The menu item is disabled.</li><li>MFS_DISABLED<br> The menu item is disabled.</li><li>MFS_CHECKED<br> The menu item is checked.</li><li>MFS_ENABLED<br> The menu item is enabled.</li><li>MFS_UNCHECKED<br> The menu item is unchecked. </li></ul><p>Definition at line <a class="el" href="window_8h-source.htm#l06082">6082</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="o1" doxytag="_MENUITEMINFO::type"></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__win32__types.htm#ga6">UINT</a> <a class="el" href="struct__MENUITEMINFO.htm#o1">type</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Type of menu item, can be one of the following values:<ul><li>MFT_STRING<br> A normal string menu item.</li></ul><p><ul><li>MFT_BITMAP<br> A bitmap menu item. When the menu item is this type, the member <em>typedata</em> will be the pointer to the normal BITMAP object, the member <em>uncheckedbmp</em> will be the pointer to the hilighted BITMAP object, the member <em>checkedbmp</em> will be the pointer to the checked BITMAP object.</li></ul><p><ul><li>MFT_BMPSTRING<br> A bitmap menu item followed by a string. When the menu item is this type, the member <em>typedata</em> will be the pointer to the text string, the member <em>uncheckedbmp</em> will be the pointer to the normal BITMAP object, and the member <em>checkedbmp</em> will be the pointer to the checked BITMAP object.</li></ul><p><ul><li>MFT_SEPARATOR A separator in menu.</li></ul><p><ul><li>MFT_RADIOCHECK<br> A normal string with a radio check mark. </li></ul><p>Definition at line <a class="el" href="window_8h-source.htm#l06067">6067</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="o8" doxytag="_MENUITEMINFO::typedata"></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__win32__types.htm#ga4">DWORD</a> <a class="el" href="struct__MENUITEMINFO.htm#o8">typedata</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The data of this menu item, used to pass the string or the pointer to the BITMAP object of the menu item <p>Definition at line <a class="el" href="window_8h-source.htm#l06100">6100</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><a class="anchor" name="o5" doxytag="_MENUITEMINFO::uncheckedbmp"></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="struct__BITMAP.htm">PBITMAP</a> <a class="el" href="struct__MENUITEMINFO.htm#o5">uncheckedbmp</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The pointer to a BITMAP object used for unchecked/highlited bitmap menu item <p>Definition at line <a class="el" href="window_8h-source.htm#l06091">6091</a> of file <a class="el" href="window_8h-source.htm">window.h</a>. </td> </tr></table><hr>The documentation for this struct was generated from the following file:<ul><li><a class="el" href="window_8h-source.htm">window.h</a></ul><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:52 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 + -