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

📄 group__mgext__control__grid__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 grid 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 grid control<br><small>[<a class="el" href="group__mgext__ctrl__grid.htm">GridView control</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga0">GRIDM_SETCELLPROPERTY</a>&nbsp;&nbsp;&nbsp;0xF210<dl class="el"><dd class="mdescRight">An Application sends a GRIDM_SETCELLPROPERTY message to set the cells' property in the grid control.  <a href="#ga0"></a><br></dl><li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga1">GRIDM_GETCELLPROPERTY</a>&nbsp;&nbsp;&nbsp;0xF211<li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga2">GRIDM_SETCOLWIDTH</a>&nbsp;&nbsp;&nbsp;0xF212<li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga3">GRIDM_GETCOLWIDTH</a>&nbsp;&nbsp;&nbsp;0xF213<li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga4">GRIDM_SETROWHEIGHT</a>&nbsp;&nbsp;&nbsp;0xF214<li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga5">GRIDM_GETROWHEIGHT</a>&nbsp;&nbsp;&nbsp;0xF215<li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga6">GRIDM_ADDROW</a>&nbsp;&nbsp;&nbsp;0xF216<li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga7">GRIDM_DELROW</a>&nbsp;&nbsp;&nbsp;0xF217<li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga8">GRIDM_ADDCOLUMN</a>&nbsp;&nbsp;&nbsp;0xF218<li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga9">GRIDM_DELCOLUMN</a>&nbsp;&nbsp;&nbsp;0xF219<li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga10">GRIDM_GETROWCOUNT</a>&nbsp;&nbsp;&nbsp;0xF21A<dl class="el"><dd class="mdescRight">Gets the number of all rows in the grid control.  <a href="#ga10"></a><br></dl><li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga11">GRIDM_GETCOLCOUNT</a>&nbsp;&nbsp;&nbsp;0xF21B<dl class="el"><dd class="mdescRight">Gets the number of all cols in the grid control.  <a href="#ga11"></a><br></dl><li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga12">GRIDM_SETNUMFORMAT</a>&nbsp;&nbsp;&nbsp;0xF21C<dl class="el"><dd class="mdescRight">Set the number format of a cell in the grid control.  <a href="#ga12"></a><br></dl><li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga13">GRIDM_SETSELECTED</a>&nbsp;&nbsp;&nbsp;0xF21D<dl class="el"><dd class="mdescRight">Set the selected cell(s) in the grid control.  <a href="#ga13"></a><br></dl><li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga14">GRIDM_GETSELECTED</a>&nbsp;&nbsp;&nbsp;0xF21E<dl class="el"><dd class="mdescRight">Get the selected cell(s) in the grid control.  <a href="#ga14"></a><br></dl><li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga15">GRIDM_ADDDEPENDENCE</a>&nbsp;&nbsp;&nbsp;0xF21F<dl class="el"><dd class="mdescRight">Add a dependence relationship of cells to another cells.  <a href="#ga15"></a><br></dl><li>#define <a class="el" href="group__mgext__control__grid__msgs.htm#ga16">GRIDM_DELDEPENDENCE</a>&nbsp;&nbsp;&nbsp;0xF220<dl class="el"><dd class="mdescRight">Delete a dependence relationship of cells to another cells.  <a href="#ga16"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga8" doxytag="gridview.h::GRIDM_ADDCOLUMN"></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 GRIDM_ADDCOLUMN&nbsp;&nbsp;&nbsp;0xF218          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>An Application sends a GRIDM_ADDCOLUMN message to add a new column to the control. if (wParam &gt; nCols) , if will do nothing. nCols is the columns' count of the grid control.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__control__grid__msgs.htm#ga8">GRIDM_ADDCOLUMN</a> <span class="keywordtype">int</span> index; <a class="code" href="struct__GRIDCELLDATA.htm">GRIDCELLDATA</a>* celldata;  wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)index; <span class="comment">// The index of the column which you want to add after it, zero base.</span> lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)celldata; <span class="comment">// The property which is setted to the new column. </span></pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns GRID_OKAY if successful, or GRID_ERR otherwise. </dd></dl><p>Definition at line <a class="el" href="gridview_8h-source.htm#l00451">451</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga15" doxytag="gridview.h::GRIDM_ADDDEPENDENCE"></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 GRIDM_ADDDEPENDENCE&nbsp;&nbsp;&nbsp;0xF21F          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Add a dependence relationship of cells to another cells. <p>An application sends an GRIDM_ADDDEPENDENCE message to add a dependence relationship of cells to another source cells, when the source cells changed, the target cells could updated automatically.<p><div class="fragment"><pre class="fragment"> GRIDCELLDEPENDENCE* dependence <a class="code" href="group__mgext__control__grid__msgs.htm#ga15">GRIDM_ADDDEPENDENCE</a> wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)dependence;  <span class="comment">// Dependence relationship for adding.</span></pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns a dependence id if successful, or GRID_ERR otherwise. </dd></dl><p>Definition at line <a class="el" href="gridview_8h-source.htm#l00581">581</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga6" doxytag="gridview.h::GRIDM_ADDROW"></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 GRIDM_ADDROW&nbsp;&nbsp;&nbsp;0xF216          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>An Application sends a GRIDM_ADDROW message to add a new row to the control. if (wParam &gt; nRows) , if will do nothing. nRows is the rows' count of the grid control.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__control__grid__msgs.htm#ga6">GRIDM_ADDROW</a> <span class="keywordtype">int</span> index; <a class="code" href="struct__GRIDCELLDATA.htm">GRIDCELLDATA</a>* celldata;  wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)index; <span class="comment">// The index of the row which you want to add after it, zero base.</span> lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)celldata; <span class="comment">// The property which is setted to the new row. </span></pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns GRID_OKAY if successful, or GRID_ERR otherwise. </dd></dl><p>Definition at line <a class="el" href="gridview_8h-source.htm#l00415">415</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga9" doxytag="gridview.h::GRIDM_DELCOLUMN"></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 GRIDM_DELCOLUMN&nbsp;&nbsp;&nbsp;0xF219          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>An Application sends a GRIDM_DELCOLUMN message to delete a column frow the control. if (wParam &lt; 1 or wParam &gt; nCols) , if will do nothing. nCols is the columns' count of the grid control.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__control__grid__msgs.htm#ga9">GRIDM_DELCOLUMN</a> <span class="keywordtype">int</span> index; wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)index; <span class="comment">// The index of the column which you want to delete.</span></pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns GRID_OKAY if successful, or GRID_ERR otherwise. </dd></dl><p>Definition at line <a class="el" href="gridview_8h-source.htm#l00468">468</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga16" doxytag="gridview.h::GRIDM_DELDEPENDENCE"></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 GRIDM_DELDEPENDENCE&nbsp;&nbsp;&nbsp;0xF220          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Delete a dependence relationship of cells to another cells. <p>An application sends an GRIDM_DELDEPENDENCE message to delete a dependence relationship of cells to another source cells.<p><div class="fragment"><pre class="fragment"> <span class="keywordtype">int</span> dependence_id <a class="code" href="group__mgext__control__grid__msgs.htm#ga15">GRIDM_ADDDEPENDENCE</a> wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)dependence_id; lParam = 0.</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns GRID_OKAY, or GRID_ERR otherwise. </dd></dl><p>Definition at line <a class="el" href="gridview_8h-source.htm#l00601">601</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga7" doxytag="gridview.h::GRIDM_DELROW"></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 GRIDM_DELROW&nbsp;&nbsp;&nbsp;0xF217          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>An Application sends a GRIDM_DELROW message to delete a row frow the control. if (wParam &lt; 1 or wParam &gt; nRows) , if will do nothing. nRows is the rows' count of the grid control.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__control__grid__msgs.htm#ga7">GRIDM_DELROW</a> <span class="keywordtype">int</span> index; wParam = 0;  lParam = index; <span class="comment">// The index of the row which you want to delete.</span></pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns GRID_OKAY if successful, or GRID_ERR otherwise. </dd></dl><p>Definition at line <a class="el" href="gridview_8h-source.htm#l00433">433</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga1" doxytag="gridview.h::GRIDM_GETCELLPROPERTY"></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 GRIDM_GETCELLPROPERTY&nbsp;&nbsp;&nbsp;0xF211          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>An Application sends a GRIDM_GETPROPERTY message to get a single cell's property in the grid control.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__control__grid__msgs.htm#ga1">GRIDM_GETCELLPROPERTY</a> <a class="code" href="struct__GRIDCELLS.htm">GRIDCELLS</a>* cells; <a class="code" href="struct__GRIDCELLDATA.htm">GRIDCELLDATA</a>* celldata; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)cell; <span class="comment">// The cell(only for one cell now) which you want to get it's property</span> lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)celldata; <span class="comment">// The pointer of the property you want to get. </span></pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Returns GRID_OKAY if successful, or GRID_ERR otherwise. </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__mgext__ctrl__grid.htm#ga9">GRIDCELLDATA</a> </dd></dl><p>Definition at line <a class="el" href="gridview_8h-source.htm#l00322">322</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga11" doxytag="gridview.h::GRIDM_GETCOLCOUNT"></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 GRIDM_GETCOLCOUNT&nbsp;&nbsp;&nbsp;0xF21B          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the number of all cols in the grid control. <p>An application sends an GRIDM_GETCOLCOUNT message to get the number of all rows in the grid control.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__control__grid__msgs.htm#ga11">GRIDM_GETCOLCOUNT</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The cols number on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="gridview_8h-source.htm#l00500">500</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga3" doxytag="gridview.h::GRIDM_GETCOLWIDTH"></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 GRIDM_GETCOLWIDTH&nbsp;&nbsp;&nbsp;0xF213          </td>

⌨️ 快捷键说明

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