⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__mgext__ctrl__treeview__msgs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<!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: Messages of treeview control</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&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><h1>Messages of treeview control<br><small>[<a class="el" href="group__mgext__ctrl__treeview.htm">TreeView control</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga0">TVM_ADDITEM</a>&nbsp;&nbsp;&nbsp;0xF110<dl class="el"><dd class="mdescRight">Adds a new item in a treeview control.  <a href="#ga0"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga1">TVM_INSERTITEM</a>&nbsp;&nbsp;&nbsp;0xF111<dl class="el"><dd class="mdescRight">The same as TVM_ADDITEM message.  <a href="#ga1"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga2">TVM_GETROOT</a>&nbsp;&nbsp;&nbsp;0xF112<dl class="el"><dd class="mdescRight">Gets the root item of a treeview control.  <a href="#ga2"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga3">TVM_DELTREE</a>&nbsp;&nbsp;&nbsp;0xF113<dl class="el"><dd class="mdescRight">Removes an item and its descendant items for the treeview control.  <a href="#ga3"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga4">TVM_SEARCHITEM</a>&nbsp;&nbsp;&nbsp;0xF114<dl class="el"><dd class="mdescRight">Searches an item matching a specified string in a subtree rooted by a specific item.  <a href="#ga4"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga5">TVM_FINDCHILD</a>&nbsp;&nbsp;&nbsp;0xF115<dl class="el"><dd class="mdescRight">Finds a child item matching a specified string in children of a specific item.  <a href="#ga5"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga6">TVM_GETSELITEM</a>&nbsp;&nbsp;&nbsp;0xF116<dl class="el"><dd class="mdescRight">Gets the selected item.  <a href="#ga6"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga7">TVM_SETSELITEM</a>&nbsp;&nbsp;&nbsp;0xF117<dl class="el"><dd class="mdescRight">Sets the selected item.  <a href="#ga7"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga8">TVM_GETITEMTEXTLEN</a>&nbsp;&nbsp;&nbsp;0xF118<dl class="el"><dd class="mdescRight">Retrives the text length of the specified item in TreeView control.  <a href="#ga8"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga9">TVM_GETITEMTEXT</a>&nbsp;&nbsp;&nbsp;0xF119<dl class="el"><dd class="mdescRight">Retrives the text of the specified item in TreeView control.  <a href="#ga9"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga10">TVM_GETITEMINFO</a>&nbsp;&nbsp;&nbsp;0xF11A<dl class="el"><dd class="mdescRight">Retrives the information of an item in TreeView control.  <a href="#ga10"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga11">TVM_SETITEMINFO</a>&nbsp;&nbsp;&nbsp;0xF11B<dl class="el"><dd class="mdescRight">Changes the information of an item.  <a href="#ga11"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga16">TVM_GETRELATEDITEM</a>&nbsp;&nbsp;&nbsp;0xF11C<dl class="el"><dd class="mdescRight">Retrives related item of specific item.  <a href="#ga16"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga17">TVM_SETSTRCMPFUNC</a>&nbsp;&nbsp;&nbsp;0xF11D<dl class="el"><dd class="mdescRight">Sets the STRCMP function used to sort items.  <a href="#ga17"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga0" doxytag="treeview.h::TVM_ADDITEM"></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 TVM_ADDITEM&nbsp;&nbsp;&nbsp;0xF110          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Adds a new item in a treeview control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga0">TVM_ADDITEM</a> <a class="code" href="group__handles.htm#ga0">GHANDLE</a> parent; <a class="code" href="struct__TVITEMINFO.htm">PTVITEMINFO</a> newIteminfo; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)parent; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)newIteminfo;</pre></div><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>parent</em>&nbsp;</td><td>Handle to the item who is the parent of the new item. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>newIteminfo</em>&nbsp;</td><td>Pointer to the item info structure of the new item to be added.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The handle to the new item on success, otherwise return 0. </dd></dl><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00172">172</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>.    </td>  </tr></table><a class="anchor" name="ga3" doxytag="treeview.h::TVM_DELTREE"></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 TVM_DELTREE&nbsp;&nbsp;&nbsp;0xF113          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Removes an item and its descendant items for the treeview control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga3">TVM_DELTREE</a> <a class="code" href="group__handles.htm#ga0">GHANDLE</a> item; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)item; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Zero on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00209">209</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>.    </td>  </tr></table><a class="anchor" name="ga5" doxytag="treeview.h::TVM_FINDCHILD"></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 TVM_FINDCHILD&nbsp;&nbsp;&nbsp;0xF115          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Finds a child item matching a specified string in children of a specific item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga5">TVM_FINDCHILD</a> GHNADLE item; <span class="keywordtype">char</span>* string; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)item; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)string;</pre></div><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>item</em>&nbsp;</td><td>The handle to the item. Zero means the root item. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>The specified string.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The handle to the item whose text matches the specified string on success, otherwise zero for not found or invalid parameters. </dd></dl><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00254">254</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>.    </td>  </tr></table><a class="anchor" name="ga10" doxytag="treeview.h::TVM_GETITEMINFO"></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 TVM_GETITEMINFO&nbsp;&nbsp;&nbsp;0xF11A          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retrives the information of an item in TreeView control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga10">TVM_GETITEMINFO</a> <a class="code" href="group__handles.htm#ga0">GHANDLE</a> item; <a class="code" href="struct__TVITEMINFO.htm">TVITEMINFO</a>* tvii; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)item; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)tvii;</pre></div><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>item</em>&nbsp;</td><td>The handle to the item which we want to retrive. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>tvii</em>&nbsp;</td><td>A pointer to a TVITEMINFO structure to receive the item information. Note that the <em>text</em> field of this structure should be large enough to get the item text.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Zero on success, otherwise -1.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mgext__ctrl__treeview__msgs.htm#ga8">TVM_GETITEMTEXTLEN</a> </dd></dl><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00352">352</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>.    </td>  </tr></table><a class="anchor" name="ga9" doxytag="treeview.h::TVM_GETITEMTEXT"></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 TVM_GETITEMTEXT&nbsp;&nbsp;&nbsp;0xF119          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retrives the text of the specified item in TreeView control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga9">TVM_GETITEMTEXT</a> <a class="code" href="group__handles.htm#ga0">GHANDLE</a> item; <span class="keywordtype">char</span>* buffer; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)item; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)buffer;</pre></div><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>item</em>&nbsp;</td><td>The handle to the item which we want to retrive. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>The pointer to a buffer to save the text of the item.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The length of the item text on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00327">327</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>.    </td>  </tr></table><a class="anchor" name="ga8" doxytag="treeview.h::TVM_GETITEMTEXTLEN"></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 TVM_GETITEMTEXTLEN&nbsp;&nbsp;&nbsp;0xF118          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retrives the text length of the specified item in TreeView control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga8">TVM_GETITEMTEXTLEN</a> <a class="code" href="group__handles.htm#ga0">GHANDLE</a> item; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)item; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)0;</pre></div><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>item</em>&nbsp;</td><td>The handle to the item which we want to retrive.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The length of the item text on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00306">306</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>.    </td>  </tr></table><a class="anchor" name="ga16" doxytag="treeview.h::TVM_GETRELATEDITEM"></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 TVM_GETRELATEDITEM&nbsp;&nbsp;&nbsp;0xF11C          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retrives related item of specific item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga16">TVM_GETRELATEDITEM</a> <span class="keywordtype">int</span> related; <a class="code" href="group__handles.htm#ga0">GHANDLE</a> item;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -