文件名称:modeless_tracker_demo
- 所属分类:
- 对话框与窗口
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 30kb
- 下载次数:
- 0次
- 提 供 者:
- 胡*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
这篇文章提出了一种轻松管理无模式对话框的方法。功能包括:
确定是否已经建立的对话
时自动关闭对话框的父对象被销毁
通知父对象的时候,对话框关闭
在从父对象对话框访问功能。
这个概念是基于一个跟踪对象,在对话框的父母和一个助手类从该对话框是双源存在。帮助类自动化之间的对话与互动的跟踪,并允许父跟踪管理对话框。
所谓“父母”是用来表示类,创建无模式对话框,因此保持它的眼睛负责。父不一定是父窗口。它可以是任何对象,需要有一个无模式对话框。-This article presents a method for easily managing modeless dialogs. Functionality includes:
Determining if the dialog is already created
Closing the dialog automatically when the parent object is destroyed
Notifying the parent object when the dialog is closed
Accessing functions in the dialog from the parent object.
The concept is based on a tracker object that exists in the dialog s parent and a helper class from which the dialog is dual-derived. The helper class automates the interaction between the dialog and its tracker, and the tracker allows the parent to manage the dialog.
The term "parent" is used to represent the class that creates the modeless dialog and is therefore responsible for keeping an eye on it. The parent is not necessarily a parent window. It could be any object that needs to have a modeless dialog.
确定是否已经建立的对话
时自动关闭对话框的父对象被销毁
通知父对象的时候,对话框关闭
在从父对象对话框访问功能。
这个概念是基于一个跟踪对象,在对话框的父母和一个助手类从该对话框是双源存在。帮助类自动化之间的对话与互动的跟踪,并允许父跟踪管理对话框。
所谓“父母”是用来表示类,创建无模式对话框,因此保持它的眼睛负责。父不一定是父窗口。它可以是任何对象,需要有一个无模式对话框。-This article presents a method for easily managing modeless dialogs. Functionality includes:
Determining if the dialog is already created
Closing the dialog automatically when the parent object is destroyed
Notifying the parent object when the dialog is closed
Accessing functions in the dialog from the parent object.
The concept is based on a tracker object that exists in the dialog s parent and a helper class from which the dialog is dual-derived. The helper class automates the interaction between the dialog and its tracker, and the tracker allows the parent to manage the dialog.
The term "parent" is used to represent the class that creates the modeless dialog and is therefore responsible for keeping an eye on it. The parent is not necessarily a parent window. It could be any object that needs to have a modeless dialog.
相关搜索: 无模式对话
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ModelessDialogTrackerDemo\DialogA.cpp
.........................\DialogA.h
.........................\DialogB.cpp
.........................\DialogB.h
.........................\DialogC.cpp
.........................\DialogC.h
.........................\ModelessDialogTracker.cpp
.........................\ModelessDialogTracker.h
.........................\ModelessDialogTrackerDemo.cpp
.........................\ModelessDialogTrackerDemo.h
.........................\ModelessDialogTrackerDemo.rc
.........................\ModelessDialogTrackerDemo.sln
.........................\ModelessDialogTrackerDemo.suo
.........................\ModelessDialogTrackerDemo.vcproj
.........................\ModelessDialogTrackerDemoDlg.cpp
.........................\ModelessDialogTrackerDemoDlg.h
.........................\ReadMe.txt
.........................\res
.........................\...\ModelessDialogTrackerDemo.ico
.........................\...\ModelessDialogTrackerDemo.manifest
.........................\...\ModelessDialogTrackerDemo.rc2
.........................\resource.h
.........................\stdafx.cpp
.........................\stdafx.h
.........................\TrackDialogC.cpp
.........................\TrackDialogC.h
.........................\DialogA.h
.........................\DialogB.cpp
.........................\DialogB.h
.........................\DialogC.cpp
.........................\DialogC.h
.........................\ModelessDialogTracker.cpp
.........................\ModelessDialogTracker.h
.........................\ModelessDialogTrackerDemo.cpp
.........................\ModelessDialogTrackerDemo.h
.........................\ModelessDialogTrackerDemo.rc
.........................\ModelessDialogTrackerDemo.sln
.........................\ModelessDialogTrackerDemo.suo
.........................\ModelessDialogTrackerDemo.vcproj
.........................\ModelessDialogTrackerDemoDlg.cpp
.........................\ModelessDialogTrackerDemoDlg.h
.........................\ReadMe.txt
.........................\res
.........................\...\ModelessDialogTrackerDemo.ico
.........................\...\ModelessDialogTrackerDemo.manifest
.........................\...\ModelessDialogTrackerDemo.rc2
.........................\resource.h
.........................\stdafx.cpp
.........................\stdafx.h
.........................\TrackDialogC.cpp
.........................\TrackDialogC.h