文件名称: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.



相关搜索: 无模式对话

(系统自动生成,下载前可以参看下载内容)

下载文件列表

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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org