MFC应用程序,创建dlalog窗口,以及在窗口内放置对话控件

1.创建一个空的MFC应用程序。点击rc后缀名文件

(1)点击rc后缀名文件
  ![点击rc后缀名文件.png](https://upload-images.jianshu.io/upload_images/23321299-7d96c0a8573a29ae.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
(2)系统会跳转到文件夹下,打开dialog文件夹,点击第二个文件,就会生成dlalog窗口
![图片.png](https://upload-images.jianshu.io/upload_images/23321299-6521eec2c83bde3b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![图片.png](https://upload-images.jianshu.io/upload_images/23321299-c62e6fa549c979d8.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
(3)对话框控件位置在视图工具箱中
![图片.png](https://upload-images.jianshu.io/upload_images/23321299-a2dbbdcc7f364f8b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
(4)就将需要的组件拖到dlalog窗口中
    1.双击添加对应的事件;2右键点击属性可以改控件名称  

    ![图片.png](https://upload-images.jianshu.io/upload_images/23321299-7ff4ca133a4f822c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。