📄 group__mgext__ctrl__treeview__msgs.htm
字号:
wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)related; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)item;</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>related</em> </td><td>A integer which indicates the relationship between the item to retrive and the specified item, can be one of the following values:<ul><li>TVIR_PARENT<br> To retrive the parent item of the specified item.</li><li>TVIR_FIRSTCHILD<br> To retrive the first child item of the specified item.</li><li>TVIR_NEXTSIBLING<br> To retrive the next sibling item of the specified item.</li><li>TVIR_PREVSIBLING<br> To retrive the previous sibling item of the specified item.</li></ul></td></tr> <tr><td valign="top"></td><td valign="top"><em>item</em> </td><td>The handle to the known item.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The handle to the related item on success, otherwise 0. </dd></dl><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00408">408</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>. </td> </tr></table><a class="anchor" name="ga2" doxytag="treeview.h::TVM_GETROOT"></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_GETROOT 0xF112 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the root item of a treeview control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga2">TVM_GETROOT</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The handle to the root item. </dd></dl><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00193">193</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>. </td> </tr></table><a class="anchor" name="ga6" doxytag="treeview.h::TVM_GETSELITEM"></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_GETSELITEM 0xF116 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the selected item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga6">TVM_GETSELITEM</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Handle to the selected item. </dd></dl><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00269">269</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>. </td> </tr></table><a class="anchor" name="ga1" doxytag="treeview.h::TVM_INSERTITEM"></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_INSERTITEM 0xF111 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The same as TVM_ADDITEM message. <p><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00178">178</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>. </td> </tr></table><a class="anchor" name="ga4" doxytag="treeview.h::TVM_SEARCHITEM"></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_SEARCHITEM 0xF114 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Searches an item matching a specified string in a subtree rooted by a specific item. <p><dl compact><dt><b>Note:</b></dt><dd>This is a depth first search.</dd></dl><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga4">TVM_SEARCHITEM</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>found</em> </td><td>The handle to the item which is the root item of the subtree. Zero means the root item. </td></tr> <tr><td valign="top"></td><td valign="top"><em>string</em> </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#l00233">233</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>. </td> </tr></table><a class="anchor" name="ga11" doxytag="treeview.h::TVM_SETITEMINFO"></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_SETITEMINFO 0xF11B </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Changes the information of an item. <p><div class="fragment"><pre class="fragment"> TVM_SETITEMTEXT <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>)id; 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> </td><td>The handle of the item. </td></tr> <tr><td valign="top"></td><td valign="top"><em>newText</em> </td><td>Pointer to a TVITEMINFO structure which include the new information of the item.</td></tr> </table></dl><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#l00373">373</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>. </td> </tr></table><a class="anchor" name="ga7" doxytag="treeview.h::TVM_SETSELITEM"></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_SETSELITEM 0xF117 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the selected item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga7">TVM_SETSELITEM</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>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>item</em> </td><td>The handle to candicate item.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The handle to the old selected item on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00287">287</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>. </td> </tr></table><a class="anchor" name="ga17" doxytag="treeview.h::TVM_SETSTRCMPFUNC"></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_SETSTRCMPFUNC 0xF11D </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the STRCMP function used to sort items. <p>An application sends a TVM_SETSTRCMPFUNC message to set a new STRCMP function to sort items in the TreeView control.<p>Note that you should send this message before adding any item to the TreeView control.<p><div class="fragment"><pre class="fragment"> <span class="keyword">static</span> <span class="keywordtype">int</span> my_strcmp (<span class="keyword">const</span> <span class="keywordtype">char</span>* s1, <span class="keyword">const</span> <span class="keywordtype">char</span>* s2, size_t n) { ... <span class="keywordflow">return</span> 0; } <a class="code" href="group__mgext__ctrl__treeview__msgs.htm#ga17">TVM_SETSTRCMPFUNC</a> wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>) my_strcmp;</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>my_strcmp</em> </td><td>Your own function to compare two strings.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>One of the following values:<ul><li>0<br> Success</li><li>-1<br> Not an empty TreeView control </li></ul></dd></dl><p>Definition at line <a class="el" href="treeview_8h-source.htm#l00439">439</a> of file <a class="el" href="treeview_8h-source.htm">treeview.h</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:56 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 + -