mfc对话框分隔管理器

上传者: u011711997 | 上传时间: 2021-06-15 17:36:10 | 文件大小: 348KB | 文件类型: RAR
大家好 这是一个实现对话框分隔条的类和例子代 码 希望对大家有用    使用场合:将一个对话框分隔成多个子对话框 使用方法如下(例如:水平方向将对话框分隔成两 个子对话框): 1 创建左右两个子对话框类 模板Style: child 2在要划分的对话框头文件中添加如下代码:    水平方向分隔管理器   CSplitManager m SplitH;    左子窗口   左子对话框类 m LeftWnd;    右子窗口   右子对话框类 m RightWnd; 3 在要划分的对话框的OnInitDialog中添加如下代码: 添加代码开始 设置分隔条的类型是水平方向的分隔 m SplitH SetType SPLIT MANAGER TYPE H ; 设置分隔条的厚度 m SplitH SetThickness 5 ; 设置左窗口 m SplitH SetFirstChildDialog &m LeftWnd 40 左子窗口占父窗口宽度的40% IDD DIALOGL ; 设置右窗口 m SplitH SetSecondChildDialog &m RightWnd IDD DIALOGR ; 创建分隔条 左窗口 右窗口 m SplitH Create T "" WS CHILD|WS VISIBLE|SS NOTIFY|SS GRAYRECT 分隔条窗口Style this 分隔条的父窗口 1001 分隔条ID 不能重复 ; 添加代码结束 4 在将要划分的对话框的OnSize中添加如下代码: if m SplitH m hWnd { m SplitH AutoAdjustSize cx 父窗口的新的 宽度 cy 父窗口的新的高度 ; }">大家好 这是一个实现对话框分隔条的类和例子代 码 希望对大家有用    使用场合:将一个对话框分隔成多个子对话框 使用方法如下(例如:水平方向将对话框分隔成两 个子对话框): 1 创建左右两个子对话框类 [更多]

文件下载

资源详情

[{"title":"( 52 个子文件 348KB ) mfc对话框分隔管理器","children":[{"title":"DialogSplit","children":[{"title":"对话框的单次分隔","children":[{"title":"test2.suo <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"test2.sln <span style='color:#111;'> 880B </span>","children":null,"spread":false},{"title":"test2","children":[{"title":"test2.vcproj <span style='color:#111;'> 5.70KB </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 136B </span>","children":null,"spread":false},{"title":"RightWnd.h <span style='color:#111;'> 595B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"test2.ico <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false},{"title":"test2.rc2 <span style='color:#111;'> 361B </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false},{"title":"LeftWnd.cpp <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"test2Dlg.cpp <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"LeftWnd.h <span style='color:#111;'> 590B </span>","children":null,"spread":false},{"title":"test2Dlg.h <span style='color:#111;'> 995B </span>","children":null,"spread":false},{"title":"RightWnd.cpp <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"test2.cpp <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 812B </span>","children":null,"spread":false},{"title":"SplitManager.h <span style='color:#111;'> 2.64KB </span>","children":null,"spread":false},{"title":"test2.h <span style='color:#111;'> 435B </span>","children":null,"spread":false},{"title":"SplitManager.cpp <span style='color:#111;'> 12.36KB </span>","children":null,"spread":false},{"title":"test2.rc <span style='color:#111;'> 5.46KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false}],"spread":false},{"title":"release","children":[{"title":"test2.exe <span style='color:#111;'> 316.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"CSplitManager","children":[{"title":"SplitManager.h <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false},{"title":"SplitManager.cpp <span style='color:#111;'> 12.36KB </span>","children":null,"spread":false}],"spread":true},{"title":"对话框的多次分隔","children":[{"title":"DialogSplit.sln <span style='color:#111;'> 898B </span>","children":null,"spread":false},{"title":"DialogSplit.suo <span style='color:#111;'> 25.00KB </span>","children":null,"spread":false},{"title":"DialogSplit","children":[{"title":"stdafx.cpp <span style='color:#111;'> 142B </span>","children":null,"spread":false},{"title":"DialogSplit.h <span style='color:#111;'> 471B </span>","children":null,"spread":false},{"title":"UpRWnd.cpp <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"UpLWnd.cpp <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"DialogSplit.rc2 <span style='color:#111;'> 367B </span>","children":null,"spread":false},{"title":"DialogSplit.ico <span style='color:#111;'> 21.12KB </span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false},{"title":"SecondUWnd.h <span style='color:#111;'> 835B </span>","children":null,"spread":false},{"title":"UpLWnd.h <span style='color:#111;'> 585B </span>","children":null,"spread":false},{"title":"FirstRWnd.h <span style='color:#111;'> 839B </span>","children":null,"spread":false},{"title":"SecondUWnd.cpp <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"FirstRWnd.cpp <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"SecondDWnd.cpp <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false},{"title":"DialogSplitDlg.h <span style='color:#111;'> 992B </span>","children":null,"spread":false},{"title":"DialogSplitDlg.cpp <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false},{"title":"FirstLWnd.h <span style='color:#111;'> 600B </span>","children":null,"spread":false},{"title":"DialogSplit.cpp <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"UpRWnd.h <span style='color:#111;'> 585B </span>","children":null,"spread":false},{"title":"resource.h <span style='color:#111;'> 953B </span>","children":null,"spread":false},{"title":"SplitManager.h <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"FirstLWnd.cpp <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"SecondDWnd.h <span style='color:#111;'> 519B </span>","children":null,"spread":false},{"title":"SplitManager.cpp <span style='color:#111;'> 12.36KB </span>","children":null,"spread":false},{"title":"DialogSplit.rc <span style='color:#111;'> 6.74KB </span>","children":null,"spread":false},{"title":"DialogSplit.vcproj <span style='color:#111;'> 6.26KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false}],"spread":false},{"title":"release","children":[{"title":"DialogSplit.exe <span style='color:#111;'> 320.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • zly2017 :
    有参考价值
    2017-01-12
  • u013985149 :
    不是我想要的,但是也不错,可以参考
    2014-12-05

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明