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

📄 classwgui_1_1ccheckbox.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>wGui::CCheckBox class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; </center><hr><h1>wGui::CCheckBox Class Reference</h1>A checkbox control. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="wg__checkbox_8h-source.html">wg_checkbox.h</a>&gt;</code><p><p>Inheritance diagram for wGui::CCheckBox:<p><center><img src="classwGui_1_1CCheckBox.png" usemap="#wGui::CCheckBox_map" border="0" alt=""></center><map name="wGui::CCheckBox_map"><area href="classwGui_1_1CWindow.html" alt="wGui::CWindow" shape="rect" coords="0,56,138,80"><area href="classwGui_1_1CMessageClient.html" alt="wGui::CMessageClient" shape="rect" coords="0,0,138,24"></map><h2>Public Types</h2><ul><li>enum <a class="el" href="classwGui_1_1CCheckBox.html#s3">EState</a> { <a class="el" href="classwGui_1_1CCheckBox.html#s3s0">UNCHECKED</a>, <a class="el" href="classwGui_1_1CCheckBox.html#s3s1">CHECKED</a>, <a class="el" href="classwGui_1_1CCheckBox.html#s3s2">DISABLED</a> }<dl class="el"><dd><font size=-1><em>The checkbox state.</em> <a href="#s3">More...</a><em><br><br></em></font></dl></ul><h2>Public Methods</h2><ul><li><a class="el" href="classwGui_1_1CCheckBox.html#a0">CCheckBox</a> (const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &amp;WindowRect, <a class="el" href="classwGui_1_1CWindow.html">CWindow</a> *pParent)<li><a name="a1" doxytag="wGui::CCheckBox::~CCheckBox"></a>virtual <a class="el" href="classwGui_1_1CCheckBox.html#a1">~CCheckBox</a> (void)<dl class="el"><dd><font size=-1><em>Standard destructor.<br><br></em></font></dl><li><a name="a2" doxytag="wGui::CCheckBox::GetCheckBoxState"></a><a class="el" href="classwGui_1_1CCheckBox.html#s3">EState</a> <a class="el" href="classwGui_1_1CCheckBox.html#a2">GetCheckBoxState</a> (void) const<dl class="el"><dd><font size=-1><em><dl compact><dt><b>Returns: </b></dt><dd>The current checkbox state</dl><br><br></em></font></dl><li>void <a class="el" href="classwGui_1_1CCheckBox.html#a3">SetCheckBoxState</a> (<a class="el" href="classwGui_1_1CCheckBox.html#s3">EState</a> eState)<li><a name="a4" doxytag="wGui::CCheckBox::Draw"></a>virtual void <a class="el" href="classwGui_1_1CCheckBox.html#a4">Draw</a> (void) const<dl class="el"><dd><font size=-1><em>Draws the checkbox.<br><br></em></font></dl><li>virtual bool <a class="el" href="classwGui_1_1CCheckBox.html#a5">OnMouseButtonDown</a> (<a class="el" href="classwGui_1_1CPoint.html">CPoint</a> Point, unsigned int Button)<li>virtual bool <a class="el" href="classwGui_1_1CCheckBox.html#a6">OnMouseButtonUp</a> (<a class="el" href="classwGui_1_1CPoint.html">CPoint</a> Point, unsigned int Button)<li>virtual bool <a class="el" href="classwGui_1_1CCheckBox.html#a7">HandleMessage</a> (<a class="el" href="classwGui_1_1CMessage.html">CMessage</a> *pMessage)</ul><h2>Protected Attributes</h2><ul><li><a name="n0" doxytag="wGui::CCheckBox::m_eCheckBoxState"></a><a class="el" href="classwGui_1_1CCheckBox.html#s3">EState</a> <a class="el" href="classwGui_1_1CCheckBox.html#n0">m_eCheckBoxState</a><dl class="el"><dd><font size=-1><em>The checkbox's state.<br><br></em></font></dl><li><a name="n1" doxytag="wGui::CCheckBox::m_MouseButton"></a>unsigned int <a class="el" href="classwGui_1_1CCheckBox.html#n1">m_MouseButton</a><dl class="el"><dd><font size=-1><em>The last mouse button to be pushed over the control, it's used internally.<br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>A checkbox control.<p>The checkbox will generate CTRL_xCLICK messages when clicked with the mouse (where x is the button L,M,R) It will also generate a CTRL_VALUECHANGE message whenever the checkbox is toggled Checkboxes do not display their own labels <p><p>Definition at line <a class="el" href="wg__checkbox_8h-source.html#l00041">41</a> of file <a class="el" href="wg__checkbox_8h-source.html">wg_checkbox.h</a>.<hr><h2>Member Enumeration Documentation</h2><a name="s3" doxytag="wGui::CCheckBox::EState"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> enum wGui::CCheckBox::EState      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>The checkbox state.<p><dl compact><dt><b>Enumeration values: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a name="s3s0" doxytag="UNCHECKED"></a><em>UNCHECKED</em></em>&nbsp;</td><td>The checkbox is unchecked.</td></tr><tr><td valign=top><em><a name="s3s1" doxytag="CHECKED"></a><em>CHECKED</em></em>&nbsp;</td><td>The checkbox is checked.</td></tr><tr><td valign=top><em><a name="s3s2" doxytag="DISABLED"></a><em>DISABLED</em></em>&nbsp;</td><td>The checkbox is disabled.</td></tr></table></dl><p>Definition at line <a class="el" href="wg__checkbox_8h-source.html#l00053">53</a> of file <a class="el" href="wg__checkbox_8h-source.html">wg_checkbox.h</a>.<p>Referenced by <a class="el" href="wg__checkbox_8h-source.html#l00060">GetCheckBoxState()</a>.    </td>  </tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="wGui::CCheckBox::CCheckBox"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> wGui::CCheckBox::CCheckBox </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &amp;&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>WindowRect</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap><a class="el" href="classwGui_1_1CWindow.html">CWindow</a> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>pParent</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Constructs a new checkbox <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>WindowRect</em>&nbsp;</td><td>A <a class="el" href="classwGui_1_1CRect.html">CRect</a> that defines the outer limits of the control </td></tr><tr><td valign=top><em>pParent</em>&nbsp;</td><td>A pointer to the parent window </td></tr></table></dl><p>Definition at line <a class="el" href="wg__checkbox_8cpp-source.html#l00033">33</a> of file <a class="el" href="wg__checkbox_8cpp-source.html">wg_checkbox.cpp</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00194">wGui::CWindow::m_BGColor</a>, and <a class="el" href="wg__window_8h-source.html#l00212">wGui::CWindow::m_sClassName</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a7" doxytag="wGui::CCheckBox::HandleMessage"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool wGui::CCheckBox::HandleMessage </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CMessage.html">CMessage</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>pMessage</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td>

⌨️ 快捷键说明

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