common

本文详细介绍了多种控件样式,如CCS_ADJUSTABLE允许自定义工具栏按钮;CCS_BOTTOM使控件置于父窗口底部;CCS_LEFT使控件显示在父窗口左侧等。这些样式适用于头文件、工具栏及状态窗口。

common
This section lists common control styles.
Except where noted, these styles apply to header controls, toolbar controls, and status windows.

Constants

CCS_ADJUSTABLE
Enables a toolbar's built-in customization features, which enable the user to drag a button to a new position or to remove a button by dragging it off the toolbar. In addition, the user can double-click the toolbar to display the Customize Toolbar dialog box, which enables the user to add, delete, and rearrange toolbar buttons.

CCS_BOTTOM
Causes the control to position itself at the bottom of the parent window's client area and sets the width to be the same as the parent window's width. Status windows have this style by default.

CCS_LEFT
Version 4.70. Causes the control to be displayed vertically on the left side of the parent window.

CCS_NODIVIDER
Prevents a two-pixel highlight from being drawn at the top of the control.

CCS_NOMOVEX
Version 4.70. Causes the control to resize and move itself vertically, but not horizontally, in response to a WM_SIZE message. If CCS_NORESIZE is used, this style does not apply.

CCS_NOMOVEY
Causes the control to resize and move itself horizontally, but not vertically, in response to a WM_SIZE message. If CCS_NORESIZE is used, this style does not apply. Header windows have this style by default.

CCS_NOPARENTALIGN
Prevents the control from automatically moving to the top or bottom of the parent window. Instead, the control keeps its position within the parent window despite changes to the size of the parent. If CCS_TOP or CCS_BOTTOM is also used, the height is adjusted to the default, but the position and width remain unchanged.

CCS_NORESIZE
Prevents the control from using the default width and height when setting its initial size or a new size. Instead, the control uses the width and height specified in the request for creation or sizing.

CCS_RIGHT
Version 4.70. Causes the control to be displayed vertically on the right side of the parent window.

CCS_TOP
Causes the control to position itself at the top of the parent window's client area and sets the width to be the same as the parent window's width. Toolbars have this style by default.

CCS_VERT
Version 4.70. Causes the control to be displayed vertically.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值