ddx_cbstring_ddr和ddx_东方财富ddx抓涨停(22)

电脑杂谈  发布时间:2017-03-01 20:06:45  来源:网络整理

three-state check box, except that the box changes its state when the user selects it.

? BS_CHECKBOX 检查框 Creates a small square that has text displayed to its

right (unless this style is combined with the BS_LEFTTEXT style).

? BS_DEFPUSHBUTTON 默认普通按钮 Creates a button that has a heavy black

border. The user can select this button by pressing the ENTER key. This style enables the user to quickly select the most likely option (the default

option).

? BS_LEFTTEXT 左对齐文字 When combined with a radio-button or check-box

style, the text appears on the left side of the radio button or check box. ? BS_OWNERDRAW 自绘按钮 Creates an owner-drawn button. The framework calls

the DrawItem member function when a visual aspect of the button has changed. This style must be set when using the CBitmapButton class.

? BS_PUSHBUTTON 普通按钮 Creates a pushbutton that posts a WM_COMMAND

message to the owner window when the user selects the button.

? BS_RADIOBUTTON 圆形选择按钮 Creates a small circle that has text

displayed to its right (unless this style is combined with the BS_LEFTTEXT style). Radio buttons are usually used in groups of related but mutually exclusive choices.

? BS_3STATE 允许按钮有三种状态即:选中,未选中,未定 Same as a check box,

except that the box can be dimmed as well as checked. The dimmed state

typically is used to show that a check box has been disabled.

rect为窗口所占据的矩形区域,pParentWnd为父窗口指针,nID为该窗口的ID值。 获取/改变按钮状态:对于检查按钮和圆形按钮可能有两种状态,选中和未选中,如果设置了BS_3STATE或BS_AUTO3STATE风格就可能出现第三种状态:未定,这时按钮显示灰色。通过调用int CButton::GetCheck( ) 得到当前是否被选中,返回0:未选中,1:选中,2:未定。调用void CButton::SetCheck( int nCheck );设置当前选中状态。


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/ruanjian/article-35251-22.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...