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

📄 group__mgext__control__grid__msgs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 2 页
字号:
        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>An Application sends a GRIDM_GETCOLWIDTH message to get a column width in the grid control. if (lParam &lt; 1 or lParam &gt; nCols) , if will do nothing. nCows 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#ga3">GRIDM_GETCOLWIDTH</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 get width.</span></pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The width of the column on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="gridview_8h-source.htm#l00359">359</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga10" doxytag="gridview.h::GRIDM_GETROWCOUNT"></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_GETROWCOUNT&nbsp;&nbsp;&nbsp;0xF21A          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the number of all rows in the grid control. <p>An application sends an GRIDM_GETROWCOUNT 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#ga10">GRIDM_GETROWCOUNT</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The rows number on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="gridview_8h-source.htm#l00484">484</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga5" doxytag="gridview.h::GRIDM_GETROWHEIGHT"></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_GETROWHEIGHT&nbsp;&nbsp;&nbsp;0xF215          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>An Application sends a GRIDM_GETROWHEIGHT message to get a row height in the grid control. if (lParam &lt; 1 or lParam &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#ga5">GRIDM_GETROWHEIGHT</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 row which you want to get height.</span></pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The height of the row on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="gridview_8h-source.htm#l00396">396</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga14" doxytag="gridview.h::GRIDM_GETSELECTED"></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_GETSELECTED&nbsp;&nbsp;&nbsp;0xF21E          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Get the selected cell(s) in the grid control. <p>An application sends an GRIDM_GETSELECTED message to get the selected cell(s) in the grid control.<p><div class="fragment"><pre class="fragment"> <a class="code" href="struct__GRIDCELLS.htm">GRIDCELLS</a>* cells <a class="code" href="group__mgext__control__grid__msgs.htm#ga14">GRIDM_GETSELECTED</a> wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)cells;  <span class="comment">// Get the selected cell(s) to it.</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#l00560">560</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga0" doxytag="gridview.h::GRIDM_SETCELLPROPERTY"></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_SETCELLPROPERTY&nbsp;&nbsp;&nbsp;0xF210          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>An Application sends a GRIDM_SETCELLPROPERTY message to set the cells' property in the grid control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__mgext__control__grid__msgs.htm#ga0">GRIDM_SETCELLPROPERTY</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>)cells; <span class="comment">// The cell(s) which you want to set it's(their) 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 set. </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#l00302">302</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga2" doxytag="gridview.h::GRIDM_SETCOLWIDTH"></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_SETCOLWIDTH&nbsp;&nbsp;&nbsp;0xF212          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>An Application sends a GRIDM_SETCOLWIDTH message to set column width in the grid control. if (lParam &lt; 1 or lParam &gt; nCols) , if will do nothing. nCows 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#ga2">GRIDM_SETCOLWIDTH</a> <span class="keywordtype">int</span> index; <span class="keywordtype">int</span> width; 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 set width.</span> lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)width; <span class="comment">// The width of the column you want to set. </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#l00341">341</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga12" doxytag="gridview.h::GRIDM_SETNUMFORMAT"></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_SETNUMFORMAT&nbsp;&nbsp;&nbsp;0xF21C          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Set the number format of a cell in the grid control. <p>An application sends an GRIDM_SETNUMFORMAT message to set the number format of a cell in the grid control.<p><div class="fragment"><pre class="fragment"> <a class="code" href="struct__GRIDCELLS.htm">GRIDCELLS</a> cells; <span class="keywordtype">char</span>* format  <a class="code" href="group__mgext__control__grid__msgs.htm#ga12">GRIDM_SETNUMFORMAT</a> wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)cells; <span class="comment">// The cells which you want to set.</span> lParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)format; <span class="comment">// The cells' number format, like "%1.2f";</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#l00520">520</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga4" doxytag="gridview.h::GRIDM_SETROWHEIGHT"></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_SETROWHEIGHT&nbsp;&nbsp;&nbsp;0xF214          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>An Application sends a GRIDM_SETROWHEIGHT message to set a row height in the grid control. if (lParam &lt; 1 or lParam &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#ga4">GRIDM_SETROWHEIGHT</a> <span class="keywordtype">int</span> index  <span class="keywordtype">int</span> height; 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 set height.</span> lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)height; <span class="comment">//The height of the row you want to set. </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#l00378">378</a> of file <a class="el" href="gridview_8h-source.htm">gridview.h</a>.    </td>  </tr></table><a class="anchor" name="ga13" doxytag="gridview.h::GRIDM_SETSELECTED"></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_SETSELECTED&nbsp;&nbsp;&nbsp;0xF21D          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Set the selected cell(s) in the grid control. <p>An application sends an GRIDM_SETSELECTED message to set the selected cell(s) in the grid control.<p><div class="fragment"><pre class="fragment"> <a class="code" href="struct__GRIDCELLS.htm">GRIDCELLS</a>* cells <a class="code" href="group__mgext__control__grid__msgs.htm#ga13">GRIDM_SETSELECTED</a> wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)cells; <span class="comment">// The cell(s) which you want to set selected.</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#l00540">540</a> of file <a class="el" href="gridview_8h-source.htm">gridview.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&nbsp;<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 + -