📄 button_8h.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: button.h File Reference</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><div class="nav"><a class="el" href="dir_000003.htm">include</a> / <a class="el" href="dir_000004.htm">ctrl</a></div><h1>button.h File Reference</h1><p><a href="button_8h-source.htm">Go to the source code of this file.</a><h2>Defines</h2><ul><li>#define <a class="el" href="group__ctrl__button.htm#ga0">BTN_WIDTH_BORDER</a> 4<dl class="el"><dd class="mdescRight">The width of button border. <a href="group__ctrl__button.htm#ga0"></a><br></dl><li>#define <a class="el" href="group__ctrl__button.htm#ga1">CTRL_BUTTON</a> ("button")<dl class="el"><dd class="mdescRight">The class name of button control. <a href="group__ctrl__button.htm#ga1"></a><br></dl><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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#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="group__ctrl__button__styles.htm#ga31"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__states.htm#ga0">BST_UNCHECKED</a> 0x0000<dl class="el"><dd class="mdescRight">Indicates the button is unchecked. <a href="group__ctrl__button__states.htm#ga0"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__states.htm#ga1">BST_CHECKED</a> 0x0001<dl class="el"><dd class="mdescRight">Indicates the button is checked. <a href="group__ctrl__button__states.htm#ga1"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__states.htm#ga2">BST_INDETERMINATE</a> 0x0002<dl class="el"><dd class="mdescRight">Indicates the button is grayed because the state of the button is indeterminate. <a href="group__ctrl__button__states.htm#ga2"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__states.htm#ga3">BST_PUSHED</a> 0x0004<dl class="el"><dd class="mdescRight">Specifies the highlight state. <a href="group__ctrl__button__states.htm#ga3"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__states.htm#ga4">BST_FOCUS</a> 0x0008<dl class="el"><dd class="mdescRight">Specifies the focus state. <a href="group__ctrl__button__states.htm#ga4"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga0">BM_GETCHECK</a> 0xF0F0<dl class="el"><dd class="mdescRight">Retrieves the check state of a radio button or check box. <a href="group__ctrl__button__msgs.htm#ga0"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga1">BM_SETCHECK</a> 0xF0F1<dl class="el"><dd class="mdescRight">Sets the check state of a radio button or check box. <a href="group__ctrl__button__msgs.htm#ga1"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga2">BM_GETSTATE</a> 0xF0F2<dl class="el"><dd class="mdescRight">Gets the state of a button or check box. <a href="group__ctrl__button__msgs.htm#ga2"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga3">BM_SETSTATE</a> 0xF0F3<dl class="el"><dd class="mdescRight">Sets the state of a button. <a href="group__ctrl__button__msgs.htm#ga3"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga4">BM_SETSTYLE</a> 0xF0F4<dl class="el"><dd class="mdescRight">Changes the style of a button. <a href="group__ctrl__button__msgs.htm#ga4"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga5">BM_CLICK</a> 0xF0F5<dl class="el"><dd class="mdescRight">Simulates the user clicking a button. <a href="group__ctrl__button__msgs.htm#ga5"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga6">BM_GETIMAGE</a> 0xF0F6<dl class="el"><dd class="mdescRight">Retrieves the handle to the image. <a href="group__ctrl__button__msgs.htm#ga6"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__msgs.htm#ga9">BM_SETIMAGE</a> 0xF0F7<dl class="el"><dd class="mdescRight">Associates a new image (icon or bitmap) with the button. <a href="group__ctrl__button__msgs.htm#ga9"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__ncs.htm#ga0">BN_CLICKED</a> 0<dl class="el"><dd class="mdescRight">The BN_CLICKED notification message is sent when the user clicks a button. <a href="group__ctrl__button__ncs.htm#ga0"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__ncs.htm#ga6">BN_PUSHED</a> BN_HILITE<dl class="el"><dd class="mdescRight">The BN_PUSHED notification message is sent when the user pushes a button. <a href="group__ctrl__button__ncs.htm#ga6"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__ncs.htm#ga7">BN_UNPUSHED</a> BN_UNHILITE<dl class="el"><dd class="mdescRight">The BN_UNPUSHED notification message is sent when the user unpushes a button. <a href="group__ctrl__button__ncs.htm#ga7"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__ncs.htm#ga8">BN_DBLCLK</a> BN_DOUBLECLICKED<dl class="el"><dd class="mdescRight">The BN_DBLCLK notification message is sent when the user double-clicks a button. <a href="group__ctrl__button__ncs.htm#ga8"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__ncs.htm#ga9">BN_SETFOCUS</a> 6<dl class="el"><dd class="mdescRight">The BN_SETFOCUS notification message is sent when a button receives the keyboard focus. <a href="group__ctrl__button__ncs.htm#ga9"></a><br></dl><li>#define <a class="el" href="group__ctrl__button__ncs.htm#ga10">BN_KILLFOCUS</a> 7<dl class="el"><dd class="mdescRight">The BN_KILLFOCUS notification message is sent when a button loses the keyboard focus. <a href="group__ctrl__button__ncs.htm#ga10"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2><dl compact><dt><b>Author:</b></dt><dd>Wei Yongming <<a href="mailto:ymwei@minigui.org">ymwei@minigui.org</a>> </dd></dl><dl compact><dt><b>Date:</b></dt><dd>2001/12/29</dd></dl><div class="fragment"><pre class="fragment"> Copyright (C) 2002-2007 Feynman Software. Copyright (C) 1998-2002 Wei Yongming. All rights reserved by Feynman Software. This file is part of MiniGUI, a compact cross-platform Graphics User Interface (GUI) support system for real-time embedded systems. </pre></div> <p>Definition in file <a class="el" href="button_8h-source.htm">button.h</a>.<hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:51 2007 for MiniGUI V1.6.10 API Reference by <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 + -