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

📄 group__ctrl__button__msgs.htm

📁 MINIGUI1.6开发API
💻 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: Messages of button 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 button control<br><small>[<a class="el" href="group__ctrl__button.htm">Button control</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga0">BM_GETCHECK</a>&nbsp;&nbsp;&nbsp;0xF0F0<dl class="el"><dd class="mdescRight">Retrieves the check state of a radio button or check box.  <a href="#ga0"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga1">BM_SETCHECK</a>&nbsp;&nbsp;&nbsp;0xF0F1<dl class="el"><dd class="mdescRight">Sets the check state of a radio button or check box.  <a href="#ga1"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga2">BM_GETSTATE</a>&nbsp;&nbsp;&nbsp;0xF0F2<dl class="el"><dd class="mdescRight">Gets the state of a button or check box.  <a href="#ga2"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga3">BM_SETSTATE</a>&nbsp;&nbsp;&nbsp;0xF0F3<dl class="el"><dd class="mdescRight">Sets the state of a button.  <a href="#ga3"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga4">BM_SETSTYLE</a>&nbsp;&nbsp;&nbsp;0xF0F4<dl class="el"><dd class="mdescRight">Changes the style of a button.  <a href="#ga4"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga5">BM_CLICK</a>&nbsp;&nbsp;&nbsp;0xF0F5<dl class="el"><dd class="mdescRight">Simulates the user clicking a button.  <a href="#ga5"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga6">BM_GETIMAGE</a>&nbsp;&nbsp;&nbsp;0xF0F6<dl class="el"><dd class="mdescRight">Retrieves the handle to the image.  <a href="#ga6"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga9">BM_SETIMAGE</a>&nbsp;&nbsp;&nbsp;0xF0F7<dl class="el"><dd class="mdescRight">Associates a new image (icon or bitmap) with the button.  <a href="#ga9"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga5" doxytag="button.h::BM_CLICK"></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 BM_CLICK&nbsp;&nbsp;&nbsp;0xF0F5          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Simulates the user clicking a button. <p>An application sends a BM_CLICK message to simulate the user clicking a button.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__button__msgs.htm#ga5">BM_CLICK</a> wParam = 0; lParam = 0;</pre></div> <p>Definition at line <a class="el" href="button_8h-source.htm#l00483">483</a> of file <a class="el" href="button_8h-source.htm">button.h</a>.    </td>  </tr></table><a class="anchor" name="ga0" doxytag="button.h::BM_GETCHECK"></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 BM_GETCHECK&nbsp;&nbsp;&nbsp;0xF0F0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retrieves the check state of a radio button or check box. <p>An application sends a BM_GETCHECK message to retrieve the check state of a radio button or check box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__button__msgs.htm#ga0">BM_GETCHECK</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>An integer indicates whether the button is checked.</dd></dl><dl compact><dt><b>Return values:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>BST_UNCHECKED</em>&nbsp;</td><td>The button is not checked. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>BST_CHECKED</em>&nbsp;</td><td>The button is checked. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>BST_INDETERMINATE</em>&nbsp;</td><td>The button is grayed because the state of the button is indeterminate.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__ctrl__button__states.htm">States of button control</a> </dd></dl><p>Definition at line <a class="el" href="button_8h-source.htm#l00376">376</a> of file <a class="el" href="button_8h-source.htm">button.h</a>.    </td>  </tr></table><a class="anchor" name="ga6" doxytag="button.h::BM_GETIMAGE"></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 BM_GETIMAGE&nbsp;&nbsp;&nbsp;0xF0F6          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Retrieves the handle to the image. <p>An application sends a BM_GETIMAGE message to retrieve a handle to the image (icon or bitmap) associated with the button.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__button__msgs.htm#ga6">BM_GETIMAGE</a> <span class="keywordtype">int</span> image_type; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)&amp;image_type; 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>image_type</em>&nbsp;</td><td>The type of a button image will be returned through this buferr. It can be one of the following values:<ul><li>BM_IMAGE_BITMAP<br> Bitmap of a button.</li><li>BM_IMAGE_ICON<br> Icon of a button.</li></ul></td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A handle of the bitmap or icon of the button, zero when error. </dd></dl><p>Definition at line <a class="el" href="button_8h-source.htm#l00509">509</a> of file <a class="el" href="button_8h-source.htm">button.h</a>.    </td>  </tr></table><a class="anchor" name="ga2" doxytag="button.h::BM_GETSTATE"></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 BM_GETSTATE&nbsp;&nbsp;&nbsp;0xF0F2          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the state of a button or check box. <p>An application sends a BM_GETSTATE message to determine the state of a button or check box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__button__msgs.htm#ga2">BM_GETSTATE</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>An integer indicates the button state.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__ctrl__button__states.htm">States of button control</a> </dd></dl><p>Definition at line <a class="el" href="button_8h-source.htm#l00421">421</a> of file <a class="el" href="button_8h-source.htm">button.h</a>.    </td>  </tr></table><a class="anchor" name="ga1" doxytag="button.h::BM_SETCHECK"></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 BM_SETCHECK&nbsp;&nbsp;&nbsp;0xF0F1          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the check state of a radio button or check box. <p>An application sends a BM_SETCHECK message to set the check state of a radio button or check box.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__button__msgs.htm#ga1">BM_SETCHECK</a> <span class="keywordtype">int</span> check_state; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)check_state; 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>check_state</em>&nbsp;</td><td>The check state of button, can be one of the following values:<ul><li>BST_UNCHECKED<br> Want the button to be unchecked.</li><li>BST_CHECKED<br> Want the button to be checked.</li><li>BST_INDETERMINATE<br> Want the button to be grayed if it is a three states button. </li></ul></td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old button state. </dd></dl><p>Definition at line <a class="el" href="button_8h-source.htm#l00402">402</a> of file <a class="el" href="button_8h-source.htm">button.h</a>.    </td>  </tr></table><a class="anchor" name="ga9" doxytag="button.h::BM_SETIMAGE"></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 BM_SETIMAGE&nbsp;&nbsp;&nbsp;0xF0F7          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Associates a new image (icon or bitmap) with the button. <p>An application sends a BM_SETIMAGE message to associate a new image (icon or bitmap) with the button.<p>Please use BM_IMAGE_BITMAP or BM_IMAGE_ICON as the first parameter of the message to indicate the type of button control image:<ul><li>BM_IMAGE_BITMAP<br> Specifies the type of image to associate with the button to be a bitmap.</li><li>BM_IMAGE_ICON<br> Specifies the type of image to associate with the button to be an icon. </li></ul><p>Definition at line <a class="el" href="button_8h-source.htm#l00528">528</a> of file <a class="el" href="button_8h-source.htm">button.h</a>.    </td>  </tr></table><a class="anchor" name="ga3" doxytag="button.h::BM_SETSTATE"></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 BM_SETSTATE&nbsp;&nbsp;&nbsp;0xF0F3          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the state of a button. <p>An application sends a BM_SETSTATE message to set the state of a button.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__button__msgs.htm#ga3">BM_SETSTATE</a> <span class="keywordtype">int</span> push_state; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)push_state; 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>push_state</em>&nbsp;</td><td>The push state of a button, can be one of the following values:<ul><li>Zero<br> Want the button to be unpushed.</li><li>Non zero<br> Want the button to be pushed.</li></ul></td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old button state. </dd></dl><p>Definition at line <a class="el" href="button_8h-source.htm#l00446">446</a> of file <a class="el" href="button_8h-source.htm">button.h</a>.    </td>  </tr></table><a class="anchor" name="ga4" doxytag="button.h::BM_SETSTYLE"></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 BM_SETSTYLE&nbsp;&nbsp;&nbsp;0xF0F4          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Changes the style of a button. <p>An application sends a BM_SETSTYLE message to change the style of a button.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__button__msgs.htm#ga4">BM_SETSTYLE</a> <span class="keywordtype">int</span> button_style; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)button_style; 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>button_style</em>&nbsp;</td><td>The styles of a button.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Always be zero.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__ctrl__button__styles.htm">Styles of button control</a> </dd></dl><p>Definition at line <a class="el" href="button_8h-source.htm#l00468">468</a> of file <a class="el" href="button_8h-source.htm">button.h</a>.    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:53 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 + -