📄 group__ctrl__button__styles.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: Styles 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 Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>Styles 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__styles.htm#ga0">BS_PUSHBUTTON</a> 0x00000000L<dl class="el"><dd class="mdescRight">Creates a push button. <a href="#ga0"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga1">BS_DEFPUSHBUTTON</a> 0x00000001L<dl class="el"><dd class="mdescRight">Creates a push button that behaves like a BS_PUSHBUTTON style button. <a href="#ga1"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga2">BS_CHECKBOX</a> 0x00000002L<dl class="el"><dd class="mdescRight">Creates a small, empty check box with text. <a href="#ga2"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga3">BS_AUTOCHECKBOX</a> 0x00000003L<dl class="el"><dd class="mdescRight">Creates a button that is almost the same as a check box. <a href="#ga3"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga4">BS_RADIOBUTTON</a> 0x00000004L<dl class="el"><dd class="mdescRight">Creates a small circle with text. <a href="#ga4"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga5">BS_3STATE</a> 0x00000005L<dl class="el"><dd class="mdescRight">Creates a button that is almost the same as a check box. <a href="#ga5"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga6">BS_AUTO3STATE</a> 0x00000006L<dl class="el"><dd class="mdescRight">Creates a button that is almost the same as a three-state check box. <a href="#ga6"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga9">BS_AUTORADIOBUTTON</a> 0x00000009L<dl class="el"><dd class="mdescRight">Creates a button that is almost the same as a radio button. <a href="#ga9"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga10">BS_OWNERDRAW</a> 0x0000000BL<dl class="el"><dd class="mdescRight">Creates an owner-drawn button. <a href="#ga10"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga11">BS_TYPEMASK</a> 0x0000000FL<dl class="el"><dd class="mdescRight">The type mask of style of button. <a href="#ga11"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga12">BS_TEXT</a> 0x00000000L<dl class="el"><dd class="mdescRight">Specifies that the button displays text. <a href="#ga12"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga13">BS_LEFTTEXT</a> 0x00000020L<dl class="el"><dd class="mdescRight">Places text on the left side. <a href="#ga13"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga14">BS_ICON</a> 0x00000040L<dl class="el"><dd class="mdescRight">Specifies that the button displays an icon. <a href="#ga14"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga15">BS_BITMAP</a> 0x00000080L<dl class="el"><dd class="mdescRight">Specifies that the button displays a bitmap. <a href="#ga15"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga16">BS_CONTENTMASK</a> 0x000000F0L<dl class="el"><dd class="mdescRight">The content mask of style of button. <a href="#ga16"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga17">BS_LEFT</a> 0x00000100L<dl class="el"><dd class="mdescRight">Left-justifies the text in the button rectangle. <a href="#ga17"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga18">BS_RIGHT</a> 0x00000200L<dl class="el"><dd class="mdescRight">Right-justifies text in the button rectangle. <a href="#ga18"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga19">BS_CENTER</a> 0x00000300L<dl class="el"><dd class="mdescRight">Centers text horizontally in the button rectangle. <a href="#ga19"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga20">BS_TOP</a> 0x00000400L<dl class="el"><dd class="mdescRight">Places text at the top of the button rectangle. <a href="#ga20"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga21">BS_BOTTOM</a> 0x00000800L<dl class="el"><dd class="mdescRight">Places text at the bottom of the button rectangle. <a href="#ga21"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga22">BS_VCENTER</a> 0x00000C00L<dl class="el"><dd class="mdescRight">Places text in the middle (vertically) of the button rectangle. <a href="#ga22"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga23">BS_REALSIZEIMAGE</a> 0x00000F00L<dl class="el"><dd class="mdescRight">Does not scale the image. <a href="#ga23"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga24">BS_ALIGNMASK</a> 0x00000F00L<dl class="el"><dd class="mdescRight">The alignment mask of style of button. <a href="#ga24"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga25">BS_PUSHLIKE</a> 0x00001000L<dl class="el"><dd class="mdescRight">Makes a button look and act like a push button. <a href="#ga25"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga26">BS_MULTLINE</a> 0x00002000L<dl class="el"><dd class="mdescRight">Wraps the button text to multiple lines. <a href="#ga26"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga27">BS_NOTIFY</a> 0x00004000L<dl class="el"><dd class="mdescRight">Enables a button to send notification messages to its parent window. <a href="#ga27"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga28">BS_CHECKED</a> 0x00004000L<dl class="el"><dd class="mdescRight">Makes a button checked initially. <a href="#ga28"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga29">BS_FLAT</a> 0x00008000L<dl class="el"><dd class="mdescRight">The flat style of button. <a href="#ga29"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga30">BS_NOBORDER</a> 0x00010000L<dl class="el"><dd class="mdescRight">The no border style of button. <a href="#ga30"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__styles.htm#ga31">BS_RIGHTBUTTON</a> BS_LEFTTEXT<dl class="el"><dd class="mdescRight">The right style of button. <a href="#ga31"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga5" doxytag="button.h::BS_3STATE"></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 BS_3STATE 0x00000005L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates a button that is almost the same as a check box. <p>Creates a button that is the same as a check box, except that the box can be grayed as well as checked or unchecked. Use the grayed state to show that the state of the check box is not determined. <p>Definition at line <a class="el" href="button_8h-source.htm#l00130">130</a> of file <a class="el" href="button_8h-source.htm">button.h</a>. </td> </tr></table><a class="anchor" name="ga24" doxytag="button.h::BS_ALIGNMASK"></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 BS_ALIGNMASK 0x00000F00L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>The alignment mask of style of button. <p><p>Definition at line <a class="el" href="button_8h-source.htm#l00258">258</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::BS_AUTO3STATE"></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 BS_AUTO3STATE 0x00000006L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates a button that is almost the same as a three-state check box. <p>Creates a button that is the same as a three-state check box, except that the box changes its state when the user selects it. The state cycles through checked, grayed, and unchecked. <p>Definition at line <a class="el" href="button_8h-source.htm#l00140">140</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::BS_AUTOCHECKBOX"></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 BS_AUTOCHECKBOX 0x00000003L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates a button that is almost the same as a check box. <p>Creates a button that is the same as a check box, except that the check state automatically toggles between checked and unchecked each time the user selects the check box. <p>Definition at line <a class="el" href="button_8h-source.htm#l00108">108</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::BS_AUTORADIOBUTTON"></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 BS_AUTORADIOBUTTON 0x00000009L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates a button that is almost the same as a radio button. <p>Creates a button that is the same as a radio button, except that when the user selects it, The system automatically sets the button's check state to checked and automatically sets the check state for all other buttons in the same group to unchecked. <p>Definition at line <a class="el" href="button_8h-source.htm#l00156">156</a> of file <a class="el" href="button_8h-source.htm">button.h</a>. </td> </tr></table><a class="anchor" name="ga15" doxytag="button.h::BS_BITMAP"></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 BS_BITMAP 0x00000080L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Specifies that the button displays a bitmap. <p><p>Definition at line <a class="el" href="button_8h-source.htm#l00197">197</a> of file <a class="el" href="button_8h-source.htm">button.h</a>. </td> </tr></table><a class="anchor" name="ga21" doxytag="button.h::BS_BOTTOM"></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 BS_BOTTOM 0x00000800L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Places text at the bottom of the button rectangle. <p><p>Definition at line <a class="el" href="button_8h-source.htm#l00240">240</a> of file <a class="el" href="button_8h-source.htm">button.h</a>. </td> </tr></table><a class="anchor" name="ga19" doxytag="button.h::BS_CENTER"></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 BS_CENTER 0x00000300L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Centers text horizontally in the button rectangle. <p><p>Definition at line <a class="el" href="button_8h-source.htm#l00228">228</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::BS_CHECKBOX"></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 BS_CHECKBOX 0x00000002L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Creates a small, empty check box with text. <p>By default, the text is displayed to the right of the check box. To display the text to the left of the check box, combine this flag with the BS_LEFTTEXT style (or with the equivalent BS_RIGHTBUTTON style). <p>Definition at line <a class="el" href="button_8h-source.htm#l00098">98</a> of file <a class="el" href="button_8h-source.htm">button.h</a>. </td> </tr></table><a class="anchor" name="ga28" doxytag="button.h::BS_CHECKED"></a><p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -