MFC窗口风格 WS_style/WS_EX_style(超详细)(MFC window style WS_ style/WS_ EX_ Style (super detailed))

窗口风格(Window style)

WS_BORDER   有边框窗口

WS_CAPTION   必须和WS_BORDER风格配合,但不能与WS_DLGFRAME风格一起使用。指示窗口包含标题要部分。

WS_CHILD   说明窗口为子窗口,不能应用于弹出式窗口风格(WS_POPUP)。

WS_CHILDWINDOW   同WS_CHILD。

WS_CLIPCHILDREN   绘制父窗口时,不绘制子窗口的裁剪区域。使用在建立父窗口时。

WS_CLIPSIBLINGS 剪裁相关的子窗口,这意味着,当一个特定的子窗口接收到重绘消息时,WS_CLIPSIBLINGS风格将在子窗口要重画的区域中去掉与其它子窗口重叠的部分。(如果没有指定WS_CLIPSIBLINGS风格,并且子窗口有重叠,当你在一个子窗口的客户区绘图时,它可能会画在相邻的子窗口的客户区中。)只与WS_CHILD风格一起使用。

WS_DISABLED 创建一个初始状态为禁止的窗口。

WS_DLGFRAME 创建一个窗口,具有双重边界,但是没有标题条。

WS_GROUP 指定一组控件中的第一个,用户可以用箭头键在这组控件中移动。在第一个控件后面把WS_GROUP风格设置为FALSE的控件都属于这一组。下一个具有WS_GROUP风格的控件将开始下一组(这意味着一个组在下一组的开始处结束)。

WS_HSCROLL 创建一个具有水平滚动条的窗口。 

WS_ICONIC:创建一个初始状态为最小化状态的窗口。与WS_MINIMIZE风格相同。

WS_MAXIMIZE 创建一个最大化的窗口。

WS_MAXIMIZEBOX 创建一个具有最大化按钮的窗口。

WS_MINIMIZE 创建一个初始状态为最小化的窗口。仅与WS_OVERLAPPED风格一起使用。

WS_MINIMIZEBOX 创建一个具有最小化按钮的窗口。

WS_OVERLAPPED 创建一个重叠窗口。重叠窗口通常具有标题条和边界。

WS_OVERLAPPEDWINDOW 创建一个具有WS_OVERLAPPED,WS_CAPTION,WS_SYSMENU,WS_THICKFRAME,WS_MINIMIZEBOX和WS_MAXIMIZEBOX风格的重叠式窗口。

WS_POPUP 创建一个弹出式窗口,不能与WS_CHILD风格一起使用。

WS_POPUPWINDOW 创建一个具有WS_BORDER,WS_POPUP和WS_SYSMENU风格的弹出窗口。为了使控制菜单可见,必须与WS_POPUPWINDOW一起使用WS_CAPTION风格。

WS_SIZEBOX:创建一个可调边框的窗口,与WS_THICKFRAME风格相同。

WS_SYSMENU 创建一个在标题条上具有控制菜单的窗口。仅对带标题条的窗口使用。

WS_TABSTOP 指定了一些控件中的一个,用户可以通过TAB键来移过它。TAB键使用户移动到下一个用WS_TABSTOP风格定义的控件。

WS_THICKFRAME 创建一个具有厚边框的窗口,可以通过厚边框来改变窗口大小。

WS_TILED:产生一个层叠的窗口。一个层叠的窗口有一个标题和一个边框。与WS_OVERLAPPED风格相同。

WS_TILEDWINDOW:创建一个具有WS_OVERLAPPED,WS_CAPTION,WS_SYSMENU,MS_THICKFRAME风格的窗口。

WS_VISIBLE 创建一个最初可见的窗口。

WS_VSCROLL 创建一个具有垂直滚动条的窗口。

扩展窗口风格(Extended window style)

WS_EX_ACCEPTFILES 指明用这个风格创建的窗口能够接受拖放文件。

WS_EX_APPWINDOW – 当窗口可见时将一个顶层窗口放置在任务栏上。

WS_EX_CLIENTEDGE 指明窗口具有3D外观,这意味着,边框具有下沉的边界。

WS_EX_CONTEXTHELP 在窗口的标题条中包含问号。当用户单击问号时,鼠标光标的形状变为带指针的问号。如果用户随后单击一个子窗口,子窗口将接收到一个WM_HELP消息。

WS_EX_CONTROLPARENT 允许用户用TAB键遍历窗口的子窗口。

WS_EX_DLGMODALFRAME 指明一个具有双重边界的窗口,当你在dwStyle参数中指定了WS_CAPTION风格标志时,它可以具有标题条(可选)。

WS_EX_LEFT 指定窗口具有左对齐属性。这是缺省值。

WS_EX_LEFTSCROLLBAR 将垂直滚动条放在客户区的左边。

WS_EX_LTRREADING 按照从左到右的方式显示窗口文本。这是缺省方式。

WS_EX_MDICHILD 创建一个MDI子窗口。

WS_EX_NOPARENTNOTIFY 指定用这个风格创建的子窗口在被创建或销毁的时候将不向父窗口发送WM_PARENTNOTIFY消息。

WS_EX_OVERLAPPEDWINDOW 组合了WS_EX_CLIENTEDGE和WS_EX_WIND-OWEDGE风格。

WS_EX_PALETTEWINDOW 组合了WS_EX_WINDOWEDGE和WS_EX_TOPMOST风格。

WS_EX_RIGHT 赋予窗口右对齐属性。这与窗口类有关。

WS_EX_RIGHTSCROLLBAR 将垂直滚动条(如果有)放在客户区的右边。这是缺省方式。

WS_EX_RTLREADING 按照从右到左的顺序显示窗口文本。

WS_EX_STATICEDGE 创建一个具有三维边界的窗口,用于不接受用户输入的项。

WS_EX_TOOLWINDOW 创建一个工具窗口,目的是被用作浮动工具条。工具窗口具有标题条,比通常的标题条要短,窗口的标题是用小字体显示的。工具窗口不出现在任务条或用户按下ALT+TAB时出现的窗口中。

WS_EX_TOPMOST 指定用这个风格创建的窗口必须被放在所有非顶层窗口的上面,即使这个窗口已经不处于激活状态,它还是保留在最上面。应用程序可以用SetWindowsPos成员函数来加入或去掉这个属性。

WS_EX_TRANSPARENT 指定了用这个风格创建的窗口是透明的。这意味着,在这个窗口下面的任何窗口都不会被这个窗口挡住。用这个风格创建的窗口只有当它下面的窗口都更新过以后才接收WM_PAINT消息。

WS_EX_WINDOWEDGE 指定了具有凸起边框的窗口。

MFC 对话框不同风格(BY Icer)

MFC对话框Border类型(None、Thin、Resizing、Dialog Frame)对应的部分属性

在运行中转换对话框类型需要用到的属性

Dialog Frame

WS_CAPTION | WS_POPUP | WS_SYSMENU | WS_CLIPSIBLINGS | DS_MODALFRAME

WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE

Thin

比Dialog Frame缺少一个扩展属性WS_EX_DLGMODALFRAME

None

比Dialog Frame缺少WS_CAPTION | DS_MODALFRAME

比Dialog Frame缺少扩展属性WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE

Resizing

比Dialog Frame多一个属性WS_THICKFRAME

控件

窗口样式————————-WS_POPUP – 弹出式窗口(不能与WS_CHILDWINDOW样式同时使用)WS_CHILDWINDOW – 子窗口(不能与WS_POPUP合用)WS_MINIMIZE – 最小化状态WS_VISIBLE – 可见状态WS_DISABLED – 不可用状态WS_CLIPSIBLINGS – 使窗口排除子窗口之间的相对区域WS_CLIPCHILDREN – 当在父窗口内绘图时,排除子窗口区域WS_MAXIMIZE – 具有最大化按钮,须指定WS_SYSTEM样式WS_CAPTION – 有标题框和边框(和WS_TILED样式相同)WS_BORDER – 有单边框WS_DLGFRAME – 带对话框边框样式,不带标题框WS_VSCROLL – 有垂直滚动条WS_HSCROLL – 有水平滚动条WS_SYSMENU – 标题框上带有窗口菜单(须指定WS_CAPTION样式)WS_THICKFRAME – 有可调边框(与WS_SIZEBOX样式相同)WS_GROUP – 组样式,每个组的第一个控件具有WS_TABSTOP样式WS_TABSTOP – 可接受TAB键焦点WS_MINIMIZEBOX – 有最小化按钮WS_MAXIMIZEBOX – 有最大化按钮WS_OVERLAPPEDWINDOW – 具有层叠,标题框,系统菜单,可调边框,系统按钮WS_POPUPWINDOW – 具有单边框,弹出式,系统菜单样式

扩展风格————————-WS_EX_DLGMODALFRAME – 带双层边框WS_EX_NOPARENTNOTIFY – 创建/销毁时不通知父窗口WS_EX_TOPMOST – 窗口置顶(停留在所有非最高层窗口的上面)WS_EX_ACCEPTFILES – 可接受文件拖放WS_EX_TRANSPARENT – 透明样式,在同属窗口已重画时该窗口才可重画WS_EX_MDICHILD – MDI子窗口样式WS_EX_TOOLWINDOW – 工具条窗口样式WS_EX_WINDOWEDGE – 带凸起边缘的边框WS_EX_CLIENTEDGE – 带阴影的边缘WS_EX_CONTEXTHELP – 有上下文帮助样式,标题栏包含一个问号标志WS_EX_RIGHT – 右对齐WS_EX_RTLREADING – 窗口文本从右到左显示WS_EX_LEFTSCROLLBAR – 垂直滚动条在窗口左边界WS_EX_CONTROLPARENT – 允许用户使用TAB键在窗口的子窗口间搜索WS_EX_STATICEDGE – 当窗口为不可用状态时创建一个三维边缘WS_EX_APPWINDOW – 当窗口可见时将一个顶层窗口放置在任务栏上WS_EX_OVERLAPPEDWINDOW – 带凸起边缘的边框,边缘有阴影WS_EX_PALETTEWINDOW – 带立体边框,有工具条窗口样式,窗口在顶层WS_EX_LAYERED – 分层或透明窗口,该样式可使用混合特效WS_EX_NOINHERITLAYOUT – 子控件不继承窗体或控件的布局WS_EX_LAYOUTRTL – 窗体或控件将具有从右向左的布局(因而会被镜像)WS_EX_COMPOSITED – 用双缓冲从下到上绘制窗口的所有子孙(WinXP以上)WS_EX_NOACTIVATE – 处于顶层但不激活

#32770 IDD_DLG————————-DS_ABSALIGN – 对话框的坐标为屏幕坐标(缺省为客户区坐标)DS_SYSMODAL – 系统模式(仅支持16位程序),不能与DS_CONTROL同用DS_LOCALEDIT – 在对话框内部为编辑框分配内存(仅支持16位程序)DS_SETFONT – 可定制对话框字体DS_MODALFRAME – 框架样式(不能与WS_CAPTION同用)DS_NOIDLEMSG – 无空闲消息DS_SETFOREGROUND – 使对话框在最前面显示DS_3DLOOK – 四周有3维边框DS_FIXEDSYS – 使用系统固定字体DS_NOFAILCREATE – 忽略创建过程中的错误DS_CONTROL – 控件模式,可作为其他对话框的子窗口DS_CENTER – 在屏幕居中DS_CENTERMOUSE – 在鼠标位置居中DS_CONTEXTHELP – 有上下文帮助按钮

Edit————————-ES_LEFT – 左对齐ES_CENTER – 居中对齐ES_RIGHT – 右对齐ES_MULTILINE – 多行ES_UPPERCASE – 全部大写ES_LOWERCASE – 全部小写ES_PASSWORD – 密码框ES_AUTOVSCROLL – 自动垂直滚动ES_AUTOHSCROLL – 自动水平滚动ES_NOHIDESEL – 始终显示选中部分ES_OEMCONVERT – 允许ANSI和OEM互相转换ES_READONLY – 只读ES_WANTRETURN – 可接受回车换行ES_NUMBER – 只接受数字输入

ToolbarWindow32————————-BTNS_BUTTON – 标准按钮BTNS_SEP – 分隔条按钮BTNS_CHECK – 按钮有选中和非选中两种状态,分别有不同的背景颜色BTNS_GROUP – 指定一组按钮,与BTNS_CHECK样式一起使用,同组内的按钮互斥BTNS_CHECKGROUP – 相当于BTNS_GROUP+BTNS_CHECKBTNS_DROPDOWN – 下拉按钮BTNS_AUTOSIZE – 自动改变大小BTNS_NOPREFIX – 不处理前缀字符(&)BTNS_SHOWTEXT – 显示按钮标题BTNS_WHOLEDROPDOWN – 按钮有下拉箭头TBSTYLE_TOOLTIPS – 允许出现提示窗口TBSTYLE_WRAPABLE – 当工具栏太窄一行放不下时,工具栏按钮可换行TBSTYLE_ALTDRAG – 允许按住ALT键的同时拖动按钮来更改按钮位置TBSTYLE_FLAT – 平面工具栏,即工具栏和按钮都是透明的TBSTYLE_LIST – 平面工具栏并且文字在位图右侧,须在显示前设置TBSTYLE_CUSTOMERASE – 处理删除背景消息时生成NM_CUSTOMDRAW消息TBSTYLE_REGISTERDROP – 鼠标经过按钮时生成通知消息以请求放置目标对象TBSTYLE_TRANSPARENT – 透明工具栏,工具栏是透明的,但按钮不是TBSTYLE_EX_DRAWDDARROWS – 有分隔条的下拉按钮TBSTYLE_EX_MIXEDBUTTONS – 混合按钮TBSTYLE_EX_HIDECLIPPEDBUTTONS – 隐藏部分省略的按钮TBSTYLE_EX_DOUBLEBUFFER – 双缓冲机制(检测ToolBar是否改变)(WinXP以上)CCS_TOP – 顶部对齐(工具栏控件缺省值)CCS_NOMOVEY – 可以水平移动和改变大小(如指定了CCS_NORESIZE则无效)CCS_BOTTOM – 底部对齐(状态栏控件缺少值)CCS_NORESIZE – 禁止改变大小CCS_NOPARENTALIGN – 禁止自动移动到父窗口的顶部或底部CCS_ADJUSTABLE – 允许工具栏内置的定制按钮功能CCS_NODIVIDER – 不在控件顶部画高亮线CCS_VERT – 垂直显示CCS_LEFT – 垂直并居左显示CCS_RIGHT – 垂直并居右显示CCS_NOMOVEX – 可以垂直移动和改变大小(如指定了CCS_NORESIZE则无效)

Static————————-SS_LEFT – 左对齐SS_CENTER – 居中对齐SS_RIGHT – 右对齐SS_ICON – 显示为图标SS_BLACKRECT – 黑色矩形SS_GRAYRECT – 灰色矩形SS_WHITERECT – 白色矩形SS_BLACKFRAME – 黑色边框SS_GRAYFRAME – 灰色边框SS_WHITEFRAME – 白色边框SS_USERITEM – 用户定义SS_SIMPLE – 指定一个简单矩形并在矩形中显示一行文字SS_LEFTNOWORDWRAP – 左对齐,文字不换行,超过部分省略SS_OWNERDRAW – 允许自画,该控件可接受 WM_DRAWITEM 消息SS_BITMAP – 显示为位图SS_ENHMETAFILE – 显示为增强图元文件(WMF)SS_ETCHEDHORZ – 用 EDGE_ETCHED 样式绘制上下边框SS_ETCHEDVERT – 用 EDGE_ETCHED 样式绘制左右边框SS_ETCHEDFRAME – 用 EDGE_ETCHED 样式绘制四周边框SS_REALSIZECONTROL – 图像随控件缩放SS_NOPREFIX – 不处理前缀字符(&)SS_NOTIFY – 单击或双击时通知父窗口SS_CENTERIMAGE – 图像居中SS_RIGHTJUST – SS_BITMAP或SS_ICON样式改变大小时右边界不动SS_REALSIZEIMAGE – 图像不缩放,超过部分省略SS_SUNKEN – 凹边框SS_ENDELLIPSIS – 结尾超出范围的字符串将省略,若超出限制后面不加圆点.SS_PATHELLIPSIS – 尽可能保留’\’后的文字.并在’\’前插入圆点SS_WORDELLIPSIS – 任何超出范围的字都要被省略并加三个圆点

Button IDC_GRP————————-BS_PUSHBUTTON – 按下弹起BS_DEFPUSHBUTTON – 带默认的按钮BS_CHECKBOX – 复选框BS_AUTOCHECKBOX – 自动改变状态的复选框BS_RADIOBUTTON – 单选框BS_3STATE – 三态复选框(选中,非选中,灰色)BS_AUTO3STATE – 自动改变状态的三态复选框BS_GROUPBOX – 组框BS_USERBUTTON – 此样式只为兼容16位Windows,已由BS_OWNERDRAW代替BS_AUTORADIOBUTTON – 自动改变状态的单选按钮BS_OWNERDRAW – 允许自画, 使其接受 WM_DRAWITEM 消息BS_LEFTTEXT – 文字在左边BS_TEXT – 文字标题BS_ICON – 带图标BS_BITMAP – 带位图BS_LEFT – 左对齐BS_RIGHT – 右对齐BS_CENTER – 居中对齐BS_TOP – 文字靠上BS_BOTTOM – 文字靠下BS_VCENTER – 文字垂直居中BS_PUSHLIKE – 类似按下弹起BS_MULTILINE – 多行文字BS_NOTIFY – 允许将焦点消息通知父窗口BS_FLAT – 平面BS_RIGHTBUTTON – 按钮在右面,相当于BS_LEFTTEXT

ComboBox————————-CBS_SIMPLE – 不显示下拉按钮,总是显示列表框CBS_DROPDOWN – 类似CBS_SIMPLE,只是在未点击下拉按钮以前不显示下拉列表CBS_DROPDOWNLIST – 类似CBS_DROPDOWN,但不可以更改文本内容CBS_OWNERDRAWFIXED – 允许自画,但行高一致CBS_OWNERDRAWVARIABLE – 允许自画,行高可以不一致CBS_AUTOHSCROLL – 自动滚动文本CBS_OEMCONVERT – 允许OEM字符集转换CBS_SORT – 自动按字母排序CBS_HASSTRINGS – 指定自画样式的ComboBox包含的项目由字符串组成CBS_NOINTEGRALHEIGHT – 组合框的大小可以不是项目大小的整数倍CBS_DISABLENOSCROLL – 总是显示垂直滚动条CBS_UPPERCASE – 全部大写CBS_LOWERCASE – 全部小写

ScrollBar————————-SBS_HORZ – 水平滚动条SBS_VERT – 垂直滚动条SBS_TOPALIGN – 在指定区域内顶对齐SBS_LEFTALIGN – 在指定区域内左对齐SBS_BOTTOMALIGN – 在指定区域内底对齐SBS_RIGHTALIGN – 在指定区域内右对齐SBS_SIZEBOXTOPLEFTALIGN – 带有大小框,左上对齐SBS_SIZEBOXBOTTOMRIGHTALIGN – 带有大小框,右下对齐SBS_SIZEBOX – 带有大小框SBS_SIZEGRIP – 类似SBS_SIZEBOX,但有凸起的边框

SysTabControl32————————-TCS_SCROLLOPPOSITE – 选择一个选项卡时不需要滚动对边TCS_BOTTOM – 选项卡在底部TCS_RIGHT – 选项卡在右边TCS_MULTISELECT – 允许多选TCS_FLATBUTTONS – 平面按钮样式, 四周没有边框TCS_FORCEICONLEFT – 强制图标在左边TCS_FORCELABELLEFT – 强制标签在左边TCS_HOTTRACK – 允许热点选择TCS_VERTICAL – 选项卡在左边并且文字垂直显示TCS_TABS – 选项卡样式, 四周有边框, 缺省样式TCS_BUTTONS – 按钮样式, 四周没有边框TCS_SINGLELINE – 单行显示TCS_MULTILINE – 多行显示TCS_RIGHTJUSTIFY – TCS_FIXEDWIDTH – 选项卡宽度固定TCS_RAGGEDRIGHT – 不允许拉伸选项卡以适应宽度TCS_FOCUSONBUTTONDOWN – 点击时获取焦点TCS_OWNERDRAWFIXED – 父窗口负责画出选项卡TCS_TOOLTIPS – 允许出现提示信息窗口TCS_FOCUSNEVER – 点击时不获取焦点TCS_EX_FLATSEPARATORS – 平面分隔条TCS_EX_REGISTERDROP – 注册拖放通知事件, 使用前须初始化OLE

ListBox————————-LBS_NOTIFY – 双击鼠标时通知父窗口LBS_SORT – 自动按字母排序LBS_NOREDRAW – 当改变时不重画LBS_MULTIPLESEL – 允许多项选择LBS_OWNERDRAWFIXED – 允许自画,但行高一致LBS_OWNERDRAWVARIABLE – 允许自画,行高可不一致LBS_HASSTRINGS – 指定自画样式的ListBox包含的项目由字符串组成LBS_USETABSTOPS – 可接受TAB键焦点LBS_NOINTEGRALHEIGHT – 列表框的大小可以不是项目大小的整数倍LBS_MULTICOLUMN – 允许多列LBS_WANTKEYBOARDINPUT – 拥有焦点且有按键时拥有者接收WM_VKEYTOITEM消息LBS_EXTENDEDSEL – 允许使用Shift键多选LBS_DISABLENOSCROLL – 总是显示垂直滚动条LBS_NODATA – 无数据模式(必须指定LBS_OWNERDRAWFIXED)LBS_NOSEL – 失去焦点时隐藏所选项LBS_STANDARD – 标准样式:按字母排序,允许通知父窗口,有边框

msctls_progress32————————-PBS_SMOOTH – 平滑的滚动条(不是缺省的分段滚动条)PBS_VERTICAL – 垂直方向

msctls_updown32————————-UDS_WRAP – 递增和递减如果超过边界则循环UDS_SETBUDDYINT – 值改变时设置关联窗口的文本UDS_ALIGNRIGHT – 位置在关联窗口的右边UDS_ALIGNLEFT – 位置在关联窗口的左边UDS_AUTOBUDDY – 自动选择上一个窗口为关联窗口UDS_ARROWKEYS – 响应键盘的上下键UDS_HORZ – 水平显示UDS_NOTHOUSANDS – 不显示千位分隔符(‘,’)UDS_HOTTRACK – 允许热点选择

msctls_trackbar32————————-TBS_AUTOTICKS – 自动出现刻度TBS_VERT – 垂直方向TBS_HORZ – 水平方向TBS_TOP – 刻度在上方TBS_BOTTOM – 刻度在下方TBS_LEFT – 刻度在左边TBS_RIGHT – 刻度在右边TBS_BOTH – 两边都有刻度TBS_NOTICKS – 隐藏刻度TBS_ENABLESELRANGE – 允许区域选择TBS_FIXEDLENGTH – 滑动长度固定TBS_NOTHUMB – 隐藏滑动块TBS_TOOLTIPS – 允许提示窗口显示当前进度TBS_REVERSED – 保留TBS_DOWNISLEFT – 下=左,上=右(缺省是下=右,上=左)

SysDateTimePick32————————-DTS_UPDOWN – 右边显示上下按钮(缺省显示为组合框),运行时不可更改DTS_SHOWNONE – 在左侧显示一个复选框(允许没有选择)DTS_SHORTDATEFORMAT – 短日期格式(年份为4位数)DTS_LONGDATEFORMAT – 长日期格式(年份为4位数)DTS_TIMEFORMAT – 显示时间(缺省为显示日期)DTS_SHORTDATECENTURYFORMAT – 短日期格式DTS_APPCANPARSE – 允许拥有者解析用户输入动作DTS_RIGHTALIGN – 下拉框右对齐

SysTreeView32————————-TVS_HASBUTTONS – 在父项目前显示+号或-号TVS_HASLINES – 显示项目间的连线TVS_LINESATROOT – 根节点前显示+号或-号(忽略TVS_HASLINES样式)TVS_EDITLABELS – 允许编辑标签(类似资源管理器的文件更名)TVS_DISABLEDRAGDROP – 禁止拖放TVS_SHOWSELALWAYS – 始终显示所选中项(包括失去焦点时)TVS_RTLREADING – 从右到左阅读TVS_NOTOOLTIPS – 不出现提示信息窗口TVS_CHECKBOXES – 在各项目前面显示复选框TVS_TRACKSELECT – 允许热点选择TVS_SINGLEEXPAND – 按Ctrl键多选时鼠标点击仍然展开该项目TVS_INFOTIP – 允许发送TVM_SETITEMHEIGHT消息获得信息TVS_FULLROWSELECT – 允许选择整行TVS_NOSCROLL – 隐藏滚动条TVS_NONEVENHEIGHT – 设置项目高度为奇数

SysListView32————————-LVS_ICON – 大图标LVS_REPORT – 详细资料LVS_SMALLICON – 小图标LVS_LIST – 列表LVS_SINGLESEL – 只能单选LVS_SHOWSELALWAYS – 始终显示所选中项(包括失去焦点时)LVS_SORTASCENDING – 按升序排序LVS_SORTDESCENDING – 按降序排序LVS_SHAREIMAGELISTS – 共享图像列表(当控件销毁时图像列表仍可用)LVS_NOLABELWRAP – 文字不换行LVS_AUTOARRANGE – 自动排列LVS_EDITLABELS – 允许编辑标签(类似资源管理器的文件更名)LVS_OWNERDATA – 指定一个虚拟的ListView, 由用户自己管理Item数据LVS_NOSCROLL – 禁止滚动条(对LVS_LIST和LVS_REPORT样式不适用)LVS_ALIGNTOP – 顶端对齐LVS_ALIGNLEFT – 左对齐LVS_OWNERDRAWFIXED – 允许自画(仅详细资料模式)LVS_NOCOLUMNHEADER – 详细资料模式时不显示列头LVS_NOSORTHEADER – 列头显示为平面,不响应鼠标点击(详细资料模式)LVS_EX_GRIDLINES – 显示表格线(仅详细资料模式)LVS_EX_SUBITEMIMAGES – 允许子项目显示图像(仅详细资料模式)LVS_EX_CHECKBOXES – 在各项目前面显示复选框LVS_EX_TRACKSELECT – 允许热点选择LVS_EX_HEADERDRAGDROP – 允许通过拖放列头来重新安排各列(详细资料模式)LVS_EX_FULLROWSELECT – 允许选择整行(仅详细资料模式)LVS_EX_ONECLICKACTIVATE – 单击项目激活LVS_EX_TWOCLICKACTIVATE – 双击项目激活LVS_EX_FLATSB – 平面滚动条LVS_EX_REGIONAL – 项目范围只包括图标不透明区域和文字区域(大图标模式)LVS_EX_INFOTIP – 将提示信息窗口的消息通知父窗口LVS_EX_UNDERLINEHOT – 带热点的项目文字带下划线LVS_EX_UNDERLINECOLD – 非热点的项目文字带下划线LVS_EX_MULTIWORKAREAS – 多个工作区(需在没有添加项目前设置)LVS_EX_LABELTIP – 如果没有提示信息文本就展开隐藏的标签LVS_EX_BORDERSELECT – 用选择边框的样式代替高亮LVS_EX_DOUBLEBUFFER – 双缓冲(WinXP以上)LVS_EX_HIDELABELS – 隐藏标签(WinXP以上)LVS_EX_SINGLEROW – 显示单行(WinXP以上)LVS_EX_SNAPTOGRID – 图标自动对齐到表格(WinXP以上)LVS_EX_SIMPLESELECT – (WinXP以上)

SysMonthCal32————————-MCS_DAYSTATE – 允许发送MCN_GETDAYSTATE通知获取日期状态MCS_MULTISELECT – 允许多选MCS_WEEKNUMBERS – 在左侧显示周数MCS_NOTODAYCIRCLE – 不在今天的日期上显示一个圆圈MCS_NOTODAY – 不显示今天

RichEdit20A————————-ES_LEFT – 左对齐ES_CENTER – 居中对齐ES_RIGHT – 右对齐ES_MULTILINE – 多行ES_UPPERCASE – 全部大写ES_LOWERCASE – 全部小写ES_PASSWORD – 密码框ES_AUTOVSCROLL – 自动垂直滚动ES_AUTOHSCROLL – 自动水平滚动ES_NOHIDESEL – 始终显示选中部分ES_OEMCONVERT – 允许ANSI和OEM互相转换ES_READONLY – 只读ES_WANTRETURN – 可接受回车换行ES_NUMBER – 只接受数字输入ES_SAVESEL – ES_SUNKEN – ES_DISABLENOSCROLL – ES_SELECTIONBAR – ES_NOOLEDRAGDROP – ENM_NONE – ENM_CHANGE – ENM_UPDATE – ENM_SCROLL – ENM_KEYEVENTS – ENM_MOUSEEVENTS – ENM_REQUESTRESIZE – ENM_SELCHANGE – ENM_DROPFILES – ENM_PROTECTED – ENM_CORRECTTEXT – ENM_SCROLLEVENTS – ENM_DRAGDROPDONE – ENM_IMECHANGE – ENM_LANGCHANGE – ENM_OBJECTPOSITIONS – ENM_LINK –

SysAnimate32————————-ACS_CENTER – 居中显示ACS_TRANSPARENT – 透明ACS_AUTOPLAY – 自动播放ACS_TIMER – 使用内部定时器控制(不使用线程)

SysHeader32————————-HDS_HORZ – 水平显示HDS_VERT – 垂直显示HDS_BUTTONS – 按钮样式,可响应鼠标点击HDS_HOTTRACK – 允许热点选择HDS_HIDDEN – 使其高度为0,类似隐藏的效果,非真正隐藏HDS_DRAGDROP – 允许通过拖放列头来重新安排各列HDS_FULLDRAG – 拖动时显示列头内容HDS_FILTERBAR – 包含一个过滤栏HDS_FLAT – 平面样式,不响应鼠标点击(WinXP以上)

转载自:https://www.cnblogs.com/findumars/p/5870482.html

————————

窗口风格(Window style)

WS_ BORDER     Bordered window

WS_ CAPTION     Must be and WS_ Border style, but not WS_ Dlgframe style. Indicates that the window contains the title section.

WS_ CHILD     The description window is a child window and cannot be applied to the pop-up window style (ws_popup).

WS_CHILDWINDOW   同WS_CHILD。

WS_ CLIPCHILDREN     When the parent window is drawn, the crop region of the child window is not drawn. Use when creating a parent window.

WS_ Clips clips relevant sub windows, which means that when a particular sub window receives a redraw message, WS_ Clipsiblings style will remove the overlap with other sub windows in the area to be redrawn by the sub window. (if the ws_clipsiblings style is not specified and the sub windows overlap, when you draw in the client area of a sub window, it may be drawn in the client area of adjacent sub windows.) only with WS_ Used with child style.

WS_ Disabled creates a window whose initial state is disabled.

WS_ Dlgframe creates a window with double borders but no title bar.

WS_ Group specifies the first in a group of controls in which the user can move with the arrow keys. Put WS after the first control_ Controls with group style set to false belong to this group. Next with WS_ Group style controls will start the next group (which means that one group ends at the beginning of the next group).

WS_ Hscrol creates a window with a horizontal scroll bar.

WS_ Iconic: create a window whose initial state is minimized. With WS_ The minisize style is the same.

WS_ Maximize creates a maximized window.

WS_ Maximizebox creates a window with a maximize button.

WS_ Minimize creates a window whose initial state is minimized. Only with WS_ Used with overlapped style.

WS_ Minizebox creates a window with a minimize button.

WS_ Overlapped creates an overlapping window. Overlapping windows usually have title bars and borders.

WS_OVERLAPPEDWINDOW 创建一个具有WS_OVERLAPPED,WS_CAPTION,WS_SYSMENU,WS_THICKFRAME,WS_MINIMIZEBOX和WS_MAXIMIZEBOX风格的重叠式窗口。

WS_ Popup creates a pop-up window, which cannot be associated with WS_ Used with child style.

WS_ Popupwindow creates a with WS_ BORDER,WS_ Popup and WS_ Sysmenu style pop-up window. In order for the control menu to be visible, it must be associated with WS_ Use windows with popupwindow_ Caption style.

WS_ Sizebox: create a window with adjustable border, which is similar to WS_ Thickframe has the same style.

WS_ Sysmenu creates a window with a control menu on the title bar. Only for windows with a title bar.

WS_ Tabstop specifies one of the controls that the user can move over with the tab key. The tab key moves the user to the next step_ Tabstop style defined controls.

WS_ Thickframe creates a window with a thick border. You can change the window size through the thick border.

WS_ Tiled: produces a cascading window. A cascading window has a title and a border. With WS_ Overlapped style is the same.

WS_TILEDWINDOW:创建一个具有WS_OVERLAPPED,WS_CAPTION,WS_SYSMENU,MS_THICKFRAME风格的窗口。

WS_ Visible creates a window that is initially visible.

WS_ Vscroll creates a window with a vertical scroll bar.

扩展窗口风格(Extended window style)

WS_ EX_ Accept files indicates that windows created in this style can accept drag and drop files.

WS_ EX_ Appwindow – places a top-level window on the taskbar when the window is visible.

WS_ EX_ Clientedge indicates that the window has a 3D appearance, which means that the border has a sinking boundary.

WS_ EX_ Contexthelp contains a question mark in the title bar of the window. When the user clicks the question mark, the shape of the mouse cursor changes to a question mark with a pointer. If the user then clicks a sub window, the sub window will receive a WM_ Help message.

WS_ EX_ Control parent allows the user to traverse the child windows of the window with the tab key.

WS_ EX_ Dlgmodalframe indicates a window with double boundaries when you specify WS in the dwstyle parameter_ Caption style flag, it can have a title bar (optional).

WS_ EX_ Left specifies that the window has a left alignment attribute. This is the default.

WS_ EX_ Leftscrollbar places the vertical scroll bar on the left side of the customer area.

WS_ EX_ Ltrreading displays the window text from left to right. This is the default.

WS_ EX_ Mdichild creates an MDI child window.

WS_ EX_ Noparentnotify specifies that a child window created with this style will not send WM to the parent window when it is created or destroyed_ Parentnotify message.

WS_EX_OVERLAPPEDWINDOW 组合了WS_EX_CLIENTEDGE和WS_EX_WIND-OWEDGE风格。

WS_EX_PALETTEWINDOW 组合了WS_EX_WINDOWEDGE和WS_EX_TOPMOST风格。

WS_ EX_ Right gives the window the right alignment attribute. This is related to window classes.

WS_ EX_ Rightscrollbar places the vertical scroll bar (if any) on the right side of the customer area. This is the default.

WS_ EX_ Rtlreading displays the window text in right to left order.

WS_ EX_ Staticedge creates a window with three-dimensional boundaries for items that do not accept user input.

WS_ EX_ Toolwindow creates a tool window to be used as a floating toolbar. The tool window has a title bar, which is shorter than the usual title bar. The title of the window is displayed in small font. The tool window does not appear in the task bar or in the window that appears when the user presses Alt + tab.

WS_ EX_ Topmost specifies that windows created in this style must be placed on top of all non top-level windows, and remain on top even if the window is no longer active. Applications can use the setwindowspos member function to add or remove this property.

WS_ EX_ Transparent specifies that windows created in this style are transparent. This means that any window below this window will not be blocked by this window. Windows created in this style receive WM only after the windows below them have been updated_ Paint message.

WS_ EX_ Windowswedge specifies a window with a raised border.

Different styles of MFC dialog box (by)   Icer)

Some properties corresponding to the border type (none, thin, resizing, dialog frame) of MFC dialog box

Properties required to convert dialog box types during operation

Dialog Frame

WS_CAPTION | WS_POPUP | WS_SYSMENU | WS_CLIPSIBLINGS | DS_MODALFRAME

WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE

Thin

WS is missing an extended property than dialog frame_ EX_ DLGMODALFRAME

None

比Dialog Frame缺少WS_CAPTION | DS_MODALFRAME

比Dialog Frame缺少扩展属性WS_EX_DLGMODALFRAME | WS_EX_WINDOWEDGE

Resizing

比Dialog Frame多一个属性WS_THICKFRAME

control

Window style ———————– WS_ Popup – pop up window (cannot be used with ws_childwindow style)_ Childwindow – child window (cannot be used with ws_popup)_ Minimize – minimize status WS_ Visible – visible status WS_ Disabled – unavailable status WS_ Clipsiblings – causes the window to exclude relative areas between child windows_ Clipchildren – excludes child window areas when drawing within a parent window_ Maximize – with maximize button, WS must be specified_ System style WS_ Caption – has title box and border (same style as ws_tiled)_ Border – WS with single border_ Dlgframe – style with dialog box border without title box WS_ Vscroll – WS with vertical scroll bar_ Hscroll – WS with horizontal scroll bar_ Sysmenu – with window menu on the title box (ws_caption style must be specified)_ Thickframe – with adjustable border (same as ws_sizebox style)_ Group – group style, the first control of each group has WS_ Tabstop style WS_ Tabstop – tab key focus WS acceptable_ Minimizebox – WS with minimize button_ Maximizebox – WS with maximize button_ Overlappedwindow – with cascade, title box, system menu, adjustable border and system button WS_ Popupwindow – with single border, pop-up, system menu style

Extended style ———————– WS_ EX_ Dlgmodalframe – WS with double border_ EX_ Noparentnotify – do not notify parent window WS when creating / destroying_ EX_ Topmost – window top (stay above all non top level windows) ws_ EX_ Acceptfiles – acceptable file drag and drop WS_ EX_ Transparent – transparent style. The window can be redrawn only when the same window has been redrawn_ EX_ Mdichild – MDI child window style WS_ EX_ Toolwindow – toolbar window style WS_ EX_ Windowsedge – border with raised edges WS_ EX_ Clientedge – shaded edge WS_ EX_ Contexthelp – has a context help style, and the title bar contains a question mark_ EX_ Right – align WS right_ EX_ Rtlreading – window text is displayed from right to left_ EX_ Leftscrollbar – the vertical scroll bar is on the left edge of the window_ EX_ Controlparent – allows the user to use the tab key to search for WS between child windows of the window_ EX_ Staticedge – creates a 3D edge when the window is unavailable_ EX_ Appwindow – places a top-level window on the taskbar when the window is visible_ EX_ Overlappedwindow – border with raised edges and shaded edges WS_ EX_ Palettewindow – with solid border, with toolbar window style, the window is at the top level_ EX_ Layered – layered or transparent window, which can use mixed effects_ EX_ Noinheritlayout – child controls do not inherit the layout of the form or control_ EX_ Layoutrtl – the form or control will have a right to left layout (and will therefore be mirrored) ws_ EX_ Combined – draws all descendants of the window (above WinXP) from bottom to top with double buffering_ EX_ Noactivate – at the top level but not active

#32770 IDD_ DLG————————-DS_ Absalign – the coordinates of the dialog box are screen coordinates (default is client area coordinates) ds_ Sysmodal – system mode (only 16 bit programs are supported) and cannot be associated with DS_ Control with DS_ Localedit – allocates memory for the edit box inside the dialog box (only 16 bit programs are supported)_ SetFont – customizable dialog font DS_ Modelframe – frame style (cannot be used with ws_caption) ds_ Noidlemsg – no idle message DS_ Setforeround – causes the dialog box to display DS at the front_ 3dbook – 3D border around DS_ Fixedsys – use system fixed font DS_ Nofailcreate – ignore errors during creation_ Control – control mode, which can be used as a child window of other dialog boxes_ Center – Center DS on screen_ Centermouse – Center DS in mouse position_ Contexthelp – button with context help

Edit————————-ES_ Left – align left es_ Center – Center es_ Right – right es_ Multiline – multiline es_ Uppercase – all uppercase es_ Lowercase – all lowercase es_ Password – password box es_ Autovscroll – automatic vertical scrolling es_ Autohscrol – automatic horizontal scrolling es_ Nohidesel – always show selected es_ Oemconvert – allows ANSI and OEM to convert es to each other_ Readonly – read only es_ Wantreturn – carriage return line feed acceptable_ Number – accepts only digital inputs

ToolbarWindow32————————-BTNS_ Button – standard button BTNs_ SEP – divider button BTNs_ The check – button has two statuses: selected and unselected, with different background colors BTNs_ Group – specifies a set of buttons that are associated with the BTNs_ Used together with the check style, the buttons in the same group are mutually exclusive BTNs_ Checkgroup – equivalent to BTNs_ GROUP+BTNS_ CHECKBTNS_ Dropdown – drop down button BTNs_ Autosize – automatically resize BTNs_ Noprefix – do not process prefix characters & amp; BTNs_ Showtext – Show button title BTNs_ Wholedropdown – the button has a drop-down arrow tbstyle_ Tooltips – allow prompt window tbstyle_ Wrap – when the toolbar is too narrow to fit a line, the toolbar button can wrap tbstyle_ Altdrag – allows you to drag a button while holding down the ALT key to change the button position tbstyle_ Flat – the flat toolbar, that is, the toolbar and buttons are transparent tbstyle_ List – plane toolbar, and the text is on the right side of the bitmap, tbstyle must be set before display_ Custom – generates nm when processing delete background messages_ Customraw message tbstyle_ Registerdrop – generates a notification message when the mouse passes the button to request the placement of the target object tbstyle_ Transparent – transparent toolbar. The toolbar is transparent, but the button is not tbstyle_ EX_ Drawddarrows – drop down button with separator tbstyle_ EX_ Mixedbuttons – blend button tbstyle_ EX_ Hideclippedbuttons – Hide partially omitted buttons tbstyle_ EX_ Doublebuffer – double buffer mechanism (detect whether the toolbar changes) (WinXP above) CCS_ Top – Top alignment (toolbar control default) CCS_ Nomovey – can move and change size horizontally (invalid if ccs_noresize is specified)_ Bottom – bottom alignment (status bar control missing value) CCS_ NoResize – Disable resizing_ Noparentalign – prevents automatic movement to the top or bottom of the parent window_ Adjustable – allows custom button functions built into the toolbar_ Nodivider – do not highlight the top of the control_ Vert – vertical display CCS_ Left – vertical and left display CCS_ Right – vertical and right display CCS_ Nomovex – can move and change size vertically (invalid if ccs_noresize is specified)

Static————————-SS_ Left – align left SS_ Center – Center align SS_ Right – align right SS_ Icon – displayed as icon SS_ Blackrect – Black rectangular SS_ Grayrect – gray rectangle SS_ Whiterect – white rectangle SS_ Blackframe – black border SS_ Grayframe – gray border SS_ Whiteframe – white border SS_ Useritem – user defined SS_ Simple – specifies a simple rectangle and displays a line of text in the rectangle_ Leftnowordwrap – left justified, text does not wrap, and the excess part is omitted_ Ownerraw – allow self drawing, the control can accept WM_ Drawitem message SS_ Bitmap – display as bitmap SS_ Enhmetafile – displays as enhanced metafile (WMF) ss_ Etchedhorz – edge_ Draw the upper and lower borders with etched style SS_ Etchedvert – edge_ Draw left and right borders with etched style SS_ Etchedframe – edge_ The etched style draws the surrounding border SS_ Realsizecontrol – image follower zoom SS_ Noprefix – do not process prefix characters_ Notify – notifies the parent window when clicked or double clicked_ Centerimage – image centered SS_ RIGHTJUST – SS_ Bitmap or SS_ The right boundary does not move when the icon style changes size_ Realsizeimage – the image is not scaled, and SS is omitted in excess_ Sunken – concave border SS_ Endellipsis – strings whose endings are out of range will be omitted. If they exceed the limit, they will not be followed by a dot. SS_ Pathellipsis – keep the text after ‘\’ as much as possible. Insert a dot SS before ‘\’_ Wordelipsis – any word out of range is omitted and added with three dots

Button IDC_ GRP————————-BS_ Pushbutton – press to pop up BS_ Defpushbutton – with default button BS_ Checkbox – check box BS_ Autocheckbox – check box for automatically changing state BS_ RadioButton – radio box BS_ 3State – three state check box (checked, unchecked, gray) BS_ Auto3state – three state check box for automatically changing state BS_ GroupBox – group box BS_ Userbutton – this style is only compatible with 16 bit windows and has been approved by BS_ Ownerraw replaces BS_ Autoradiobutton – radio button to automatically change status BS_ Ownerraw – allow self painting to accept WM_ Drawitem message BS_ Lefttext – text on the left BS_ Text – text title BS_ Icon – BS with Icon_ Bitmap – BS with bitmap_ Left – align left BS_ Right – align right BS_ Center – center alignment BS_ Top – text above BS_ Bottom – text down BS_ VCenter – text vertically centered BS_ Pushlike – similar to pressing pop-up BS_ Multiline – multiline BS_ Notify – allows the parent window BS to be notified of the focus message_ Flat – Flat BS_ Rightbutton – the button is on the right, equivalent to BS_ LEFTTEXT

ComboBox————————-CBS_ Simple – drop down button is not displayed, list box CBS is always displayed_ Dropdown – similar to CBS_ Simple, but the drop-down list CBS will not be displayed until the drop-down button is clicked_ Dropdownlist – similar to CBS_ Dropdown, but the text content CBS cannot be changed_ Ownerdrawfixed – self drawing is allowed, but the row height is consistent with CBS_ Ownerdrawvariable – allow self drawing, row height can be inconsistent CBS_ Autohscrol – Auto scroll text CBS_ Oemconvert – allows OEM character set conversion to CBS_ Sort – Automatic alphabetical CBS_ Hasstrings – specifies that the combobox of a self drawn style contains items that consist of strings CBS_ Nointegralheight – the size of the combo box may not be an integer multiple of the item size CBS_ Disablenoscroll – always show vertical scroll bar CBS_ Uppercase – all uppercase CBS_ Lowercase – all lowercase

ScrollBar————————-SBS_ HORZ – horizontal scroll bar SBS_ Vert – vertical scroll bar SBS_ Topalign – Top align SBS in the specified area_ Leftalign – left align SBS within the specified area_ Bottomalign – align SBS in the specified area_ Rightalign – right align SBS within the specified area_ Sizeboxtoplefalign – with size box, aligned SBS on the top left_ Sizeboxbottomrightalign – with size box, align SBS at the bottom right_ Sizebox – SBS with size box_ Sizegrip – similar to SBS_ Sizebox with raised border

SysTabControl32————————-TCS_ Scrollapposite – you do not need to scroll the opposite TCS when selecting a tab_ Bottom – tab at the bottom of TCS_ Right – the tab is on the right TCS_ Multiselect – allow multiple TCS selections_ Flatbuttons – flat button style, no border around TCS_ Forceiconleft – force icon on left TCS_ Forcelabelleft – force label on left TCS_ Hottrack – allow hotspot selection TCS_ Vertical – the tab is on the left and the text displays TCS vertically_ Tabs – tab style with borders around. The default style is TCS_ Buttons – button style, no border around TCS_ Singleline – single line display TCS_ Multiline – multiline display TCS_ RIGHTJUSTIFY –   TCS_ Fixedwidth – tab width fixed TCS_ Raggedraft – tab is not allowed to stretch to fit width TCS_ Focusonbuttondown – get focus TCS when clicked_ Ownerdrawfixed – the parent window is responsible for drawing the TCS tab_ Tooltips – allows the prompt message window TCS to appear_ Focusnever – click to not get focus TCS_ EX_ Flatseparators – Flat divider TCS_ EX_ Registerdrop – register drag and drop notification events. Ole must be initialized before use

ListBox————————-LBS_ Notify – notify parent window lbs when double clicking the mouse_ Sort – Automatic alphabetical lbs_ Noredraw – do not redraw lbs when changing_ Multipolesel – allow multiple selection of LBS_ Ownerdrawfixed – allow self drawing, but consistent row height lbs_ Ownerdrawvariable – allow self drawing, row height can be inconsistent lbs_ Hasstrings – specifies that the listbox of a self drawn style contains items consisting of strings lbs_ Usetabstops – tab key focus lbs acceptable_ Nointegralheight – the size of the list box may not be an integer multiple of the item size lbs_ Multicolumn – allow multi column lbs_ Wantkeyboardinput – the owner receives WM when there is focus and a key_ Vkeytoitem message lbs_ Extendedsel – allows you to use the shift key to select multiple lbs_ Disablenoscroll – always show vertical scroll bar lbs_ NoData – no data mode (lbs_ownerdrawfixed must be specified)_ Nosel – hide selected lbs when losing focus_ Standard – standard style: alphabetical, allows notification of the parent window, with a border

msctls_ progress32————————-PBS_ Smooth – smooth scroll bar (not the default segmented scroll bar) PBS_ Vertical – vertical

msctls_ updown32————————-UDS_ Wrap – increment and decrement loop UDS if boundary is exceeded_ Setbuddyint – sets the text UDS of the associated window when the value changes_ Align – position UDS on the right side of the associated window_ Aligneft – position UDS on the left side of the association window_ Autobuddy – automatically selects the previous window as the associated window UDS_ Arrowkeys – responds to the up and down keys of the keyboard UDS_ HORZ – horizontal display UDS_ Nothousends – do not display thousands separator (”) UDS_ Hottrack – allow hotspot selection

msctls_ trackbar32————————-TBS_ Autoticks – scale TBS appears automatically_ Vert – vertical TBS_ HORZ – Horizontal TBS_ Top – scale above TBS_ Bottom – scale below TBS_ Left – scale on left TBS_ Right – the scale is on the right TBS_ Both – scale TBS on both sides_ Notes – Hide scale TBS_ Enableselrange – allow region selection TBS_ Fixedlength – sliding length fixed TBS_ Nothumb – Hide slider TBS_ Tooltips – allows the prompt window to display the current progress TBS_ Reversed – TBS reserved_ Downisleft – bottom = left, top = right (the default is bottom = right, top = left)

SysDateTimePick32————————-DTS_ Updown – the up and down buttons are displayed on the right (the default display is a combo box). DTS cannot be changed during runtime_ Shownone – displays a check box on the left (allow no selection) DTS_ Shortdateformat – short date format (year is 4 digits) DTS_ Longdateformat – long date format (year is 4 digits) DTS_ Timeformat – display time (default is display date) DTS_ Shortdatecentryformat – short date format DTS_ Appcanparse – allows the owner to parse the user input action DTS_ Rightalign – right align drop-down box

SysTreeView32————————-TVS_ HASBUTTONS – displays + or – TVS in the parent currently_ HASLINES – displays the connection TVs between items_ Linesetroot – displays a + or – sign in front of the root node (ignores tvs_haslines style)_ Edittabs – allows editing of tags (renaming of files similar to explorer) TVs_ Disabledragdrop – Disable dragging TVs_ Showshellways – always show TVs of selected items (including when losing focus)_ Rtlreading – read TVs from right to left_ Notooltrips – no prompt window TVs_ Checkboxes – displays a check box TVs in front of each item_ Trackselect – allow hotspot selection TVs_ Singleexpand – Ctrl + Click to expand TVs of this item_ Infotip – allow sending TVM_ Setitemheight message get information TVs_ Fullrowselect – allows selection of the entire line of TVs_ Noscroll – Hide scroll bar TVs_ Nonevenheight – sets the project height to an odd number

SysListView32————————-LVS_ Icon – large LVS_ Report – details LVS_ Smallicon – small icon LVS_ List – list LVS_ Singlesel – single choice LVS only_ Showshellways – always show the LVS of the selected item (including when losing focus)_ Sortsorting – sort LVS in ascending order_ Sortdescending – sort LVS in descending order_ Shareimagelists – shared image list (the image list is still available when the control is destroyed) LVS_ Nolabelwrap – text does not wrap LVS_ Autoarray – Auto arrange LVS_ Edittabs – allows editing tags (renaming of files similar to explorer) LVS_ Ownerdata – specifies a virtual listview, and the user manages the item data LVS_ Noscroll – Disable scroll bar (not applicable to lvs_list and lvs_report styles)_ Aligntop – Top aligned LVS_ Aligneft – left aligned LVS_ Ownerdrawfixed – allow self drawing (detail mode only) LVS_ Nocolumnheader – column header LVS is not displayed in detail mode_ Nosortheader – the column header is displayed as a plane and does not respond to mouse clicks (detail mode) LVS_ EX_ Gridlines – display table lines (detail mode only) LVS_ EX_ Subitemimages – allow subitems to display images (detail mode only) LVS_ EX_ Checkboxes – displays check boxes LVS in front of each item_ EX_ Trackselect – allow hotspot selection LVS_ EX_ Headerdragdrop – allows you to rearrange columns (detail mode) LVS by dragging and dropping column headers_ EX_ Fullrowselect – allows full row (detail mode only) LVS to be selected_ EX_ Oneclickactivate – click the item to activate the LVS_ EX_ Twoclickactivate – double click the item to activate LVS_ EX_ Flatsb – Flat scroll bar LVS_ EX_ Regional – the project scope only includes the icon opaque area and text area (large icon mode) LVS_ EX_ Infotip – notifies the parent window LVS of the message prompt window_ EX_ Underlinehot – underlined LVS with hot item text_ EX_ Underlinehold – non hotspot item text underlined LVS_ EX_ Multiworksares – multiple workspaces (to be set before adding items) LVS_ EX_ Labeltip – if there is no prompt text, expand the hidden label LVS_ EX_ Borderselect – replaces the highlighted LVS with the style of the selection border_ EX_ Doublebuffer – double buffered (WinXP up) LVS_ EX_ Hidelabels – hidden labels (WinXP up) LVS_ EX_ Singlerow – display single line (WinXP up) LVS_ EX_ Snaptogrid – icon automatically aligns to table (WinXP above) LVS_ EX_ Simpleselect – (WinXP above)

SysMonthCal32————————-MCS_ Daystate – allow sending MCN_ Getdaystate notification get date status MCS_ Multiselect – allow multiple MCS selections_ Weeknumbers – Show weeks MCS on the left_ Notodaycircle – do not display a circle on today’s date MCS_ Notoday – do not display today

RichEdit20A————————-ES_LEFT – 左对齐ES_CENTER – 居中对齐ES_RIGHT – 右对齐ES_MULTILINE – 多行ES_UPPERCASE – 全部大写ES_LOWERCASE – 全部小写ES_PASSWORD – 密码框ES_AUTOVSCROLL – 自动垂直滚动ES_AUTOHSCROLL – 自动水平滚动ES_NOHIDESEL – 始终显示选中部分ES_OEMCONVERT – 允许ANSI和OEM互相转换ES_READONLY – 只读ES_WANTRETURN – 可接受回车换行ES_NUMBER – 只接受数字输入ES_SAVESEL – ES_SUNKEN – ES_DISABLENOSCROLL – ES_SELECTIONBAR – ES_NOOLEDRAGDROP – ENM_NONE – ENM_CHANGE – ENM_UPDATE – ENM_SCROLL – ENM_KEYEVENTS – ENM_MOUSEEVENTS – ENM_REQUESTRESIZE – ENM_SELCHANGE – ENM_DROPFILES – ENM_PROTECTED – ENM_CORRECTTEXT – ENM_SCROLLEVENTS – ENM_DRAGDROPDONE – ENM_IMECHANGE – ENM_LANGCHANGE – ENM_OBJECTPOSITIONS – ENM_LINK –

SysAnimate32————————-ACS_ Center – Center ACS_ Transparent – transparent ACS_ Autoplay – auto play ACS_ Timer – use internal timer control (no threads)

SysHeader32————————-HDS_ HORZ – horizontal display HDS_ Vert – vertical display HDS_ Buttons – button style that responds to mouse clicks on HDS_ Hottrack – allow hotspot selection HDS_ Hidden – set its height to 0, similar to the effect of hiding, not really hiding HDS_ DragDrop – allows you to rearrange the HDS of columns by dragging and dropping column headers_ Fulldrag – display column header content HDS when dragging_ Filterbar – contains a filter bar HDS_ Flat – flat style, not responsive to mouse clicks (WinXP above)

转载自:https://www.cnblogs.com/findumars/p/5870482.html