联盟首页 协同开发 共创软件 开放源码 软件工程 共创论坛 关于联盟
  您的位置 » 开放源码库【成熟 - 项目摘要 首页 | 分类源码 | 提交源码 | 下载统计 | 原创源码 | 成熟源码 | 代码片断
 
 Embed child dialogs into your main dia - 项目摘要
摘要 | 管理 | 论坛
文档 | 软件包

源码库中源码数量为18996
有贡献人员名单:

-= 更多 =-
  • ffdshow
  • jasperreports
  • Air Traffic Controller
  • PoolMan
  • virtualdub-win
  • Apache-SSL-Jserv
  • CppUnit
  • FCK editor
  • GLgraph
  • Async Professional
  • -= 更多 =-

    项目描述:
    One of the challenges I was recently set was to produce some code that would allow \'child\' dialogs to be added to a \'parent\' dialog at run time so that all the controls operated as if they were part of the original dialog.

    To this end I came up with some code that reads the dialog template resource file of the child dialogs and embeds the controls onto the parent dialog.

    Using the code is simple. Derive your parent dialog from the CMultiDialog class and call the AddDialog function to embed your child dialog. The first parameter is the ID of the child dialog template and the second parameter is the ID of a marker control (usually a static control) that marks the position of the child control. This marker control will be hidden after the child controls have been embedded.

    我最近遇到的一个难题是在运行时让一个子对话框增加到父对话框中,这样所以被操作的对象好像还是原始对话框的一部分。
    为了完成这一目的,我用代码来读取子对话框的模板资源文件,并嵌入控件到父对话框中。
    代码的使用是很简单的。从CMultiDialog 类派生你的父对话框类,调用 AddDialog函数来嵌入你的子对话框类。第一个是子对话框模板的ID,第二个参数是标记控件(通常是一个静态控件)的ID,这个控件标识了子对话框的位置,它会在子对话框被嵌入到隐藏起来。
    来源: http://www.codeguru.com/dialog/multidlg.html
    类别:
    发布者: cbd002

    最新发布源码包
    软件包 版本号 日期 本地下载
    multidlgchild  1.0  2004-04-14 下载

    原始下载连接(国外) http://www.codeguru.com/code/legacy/dialog/multidlgchild.zip

      » 合 作 伙 伴