博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
VC中的几个控件
阅读量:6595 次
发布时间:2019-06-24

本文共 1439 字,大约阅读时间需要 4 分钟。

ListBox control vs ComboBox

ListBox可以选择多行

ComboBox类似ListBox和Edit的组合,比ComboBox节省大小。

ComboBox可以设置成三种状态,Simple(此时类似于ListBox),Drop-down(节省空间的ListBox),Drop-down list(节省空间的ListBox,且不可修改内容)

可以发一堆消息,来控制ComboBox,在MFC中,已经对CComboBox进行了封装,如果想得到ComboBox的文字可以使用GetWindowText函数。

List Control

List view controls can display their contents in four different ways, called “views.”

  • Icon view

    Each item appears as a full-sized icon (32 x 32 pixels) with a label below it. The user can drag the items to any location in the list view window.

  • Small icon view

    Each item appears as a small icon (16 x 16 pixels) with the label to the right of it. The user can drag the items to any location in the list view window.

  • List view

    Each item appears as a small icon with a label to the right of it. Items are arranged in columns and cannot be dragged to any location in the list view window.

  • Report view (一般会选择这种)

    Each item appears on its own line, with additional information arranged in columns to the right. The leftmost column contains the small icon and label, and subsequent columns contain subitems as specified by the application. An embedded header control (class ) implements these columns. For more information on the header control and columns in a report view, see Using CListCtrl: Adding Columns to the Control (Report View).

Tree Control ,一般将 ‘Has Buttons’‘Has Lines’‘Lines as root’选上

转载于:https://www.cnblogs.com/fanzi2009/archive/2009/07/25/1530674.html

你可能感兴趣的文章
好消息:Dubbo & Spring Boot要来了
查看>>
曲线学习PyQt5方案一
查看>>
OpenCV学习】矩阵运算和操作2
查看>>
nginx+ffmpeg搭建rtmp转播rtsp流的flash服务器
查看>>
React组件: 提取图片颜色
查看>>
3D应用开发中的欧拉角和旋转矩阵
查看>>
RxJava2.0的初学者必备教程(九)
查看>>
记一次omi的项目之旅
查看>>
Android API级别、代号、发布时间及平台亮点整理
查看>>
LLDP(链路层发现协议)
查看>>
Ubuntu14 添加程序启动
查看>>
我的友情链接
查看>>
windows网络安全以及常见网络***方式
查看>>
警告 初始化默认驱动器时出错“找不到运行 Active Directory Web 服务的默认服务器。”...
查看>>
JS字符串转换数字
查看>>
使用IntelliJ IDEA开发SpringMVC网站(四)用户管理
查看>>
js 验证中文
查看>>
Linux下运行java DES AES加解密
查看>>
牛津词典 2018 年度词汇 ——「有毒」!
查看>>
Android Arcface人脸识别sdk使用工具类
查看>>