登录
首页 » Windows开发 » 《如何发送命令到文档对象》配套原代码 [代码性质] VC可重用代码段 我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档

《如何发送命令到文档对象》配套原代码 [代码性质] VC可重用代码段 我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档

于 2022-08-11 发布 文件大小:46.18 kB
0 164
下载积分: 2 下载次数: 1

代码说明:

《如何发送命令到文档对象》配套原代码 [代码性质] VC可重用代码段 我编了一个类似Windows 2000 上性能监视器的程序。在这个程序中,我创建了一个文档对象和几个视图。文档对象负责有规律地采集数据,然后通知相关的视图以不同的格式显示这些数据。文档对象为了有规律地采集数据,它需要一个定时(time)事件。但是,文档不是一个基于窗口的对象,所以它没有这样的定时事件。我权衡了三种解决方案: 1、在其中的一个视图中创建定时器。当事件发生时通知文档对象获取数据。 2、为每一个文档(或在每个文档内)创建一个单独的线程,以便这个线程能有规律地创建时间事件。 3、在CMainFrame中创建一个定时器并从中调用文档函数这三种方法我都不满意。能否给出一种更好的解决方案?- How to send commands to the Document Object matching the original code [code nature] VC reusable code segment I made a similar on the Windows 2000 Performance Monitor procedures. In this process, I created a document object and several view

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 一个可以对任意长整数进行加减的类 在Visual C++6.0 WinXp下编译通过 采用类来实现,从CString继承而来 数据运算的结果保存在CString...
    一个可以对任意长整数进行加减的类 在Visual C++6.0 WinXp下编译通过 采用类来实现,从CString继承而来 数据运算的结果保存在CString类中 理论上可对任意长的数据进行相加 在Release目录下有可执行文件,将*.txt拖放到longadd.exe上即可,*.txt为数据文件。-A class can perform add-subtract operation to long integers with random length and has been compiled in Visual C++6.0 and WinXp successfully.It is implemented by a class inherited from CString and can perform plus operation to data with random length in theory.There is a file named longadd.exe in directory Release. You may drag the data file named*.txt to that executable file to finish computing.
    2023-03-20 12:40:04下载
    积分:1
  • 使用窗口在文件监视器上的应用
    利用Windows API实现对文件监控-use of the Windows API on File Monitor
    2022-07-02 08:57:37下载
    积分:1
  • An adjacency matrix representation of the map structure, can help to understand...
    一个邻接矩阵表示的图型结构,可帮助了解图的数组表示法,理清很多基本概念。可以用VC直接编译运行。-An adjacency matrix representation of the map structure, can help to understand the array graph representation, clarifying many of the basic concepts. VC can be directly translated to run.
    2022-01-25 19:13:54下载
    积分:1
  • SMBIOS读取PC的BIOS程序,在Visual Studio环境里实现
    SMBIOS读取PC的BIOS程序,在Visual Studio环境里实现-SMBIOS read PC BIOS procedures in Visual Studio environment to achieve
    2022-05-18 02:14:31下载
    积分:1
  • ssh框架整合
    数据库设计    hibernate   spring  struts  整合。  包含文件上传、下载 分页查询  模糊查询  增删改
    2022-01-27 17:42:18下载
    积分:1
  • can总线的应用,以及针对SJA1000芯片的C语言编程,源代码使用在robot控制的一部分...
    can总线的应用,以及针对SJA1000芯片的C语言编程,源代码使用在robot控制的一部分-can bus applications, and SJA1000 chip against the C programming language, the source code used in part of the robot control
    2022-07-10 01:34:52下载
    积分:1
  • 游戏是以第一次世界大战为背景,作者的ideaonly是原…
    游戏是以第一次世界大战为背景,原本作者的构思只是源于一款多年前比较流行的棋,但是几经修改,游戏已经初具规模。里面加了作者很多创意的成分。因此基本还算的上是slg类型的游戏-The game is take the First World War as a background, author s ideaonly is originally the source in more than section years ago the quite popular chess, but several passed through the revision, the gamelready begins to take shape. Inside added the author very manycreativity ingredient. Therefore basic also calculated on is the slgtype
    2023-01-15 03:35:04下载
    积分:1
  • diblok想象处理!
    Diblok for imagine processing!
    2022-03-06 18:20:35下载
    积分:1
  • 高校人事管理系统实现添加删除修改查看等功能
    高校人事管理系统实现添加删除修改查看等功能-实现添加删除修改查看等功能
    2022-03-26 18:26:57下载
    积分:1
  • vc++6.0 MSChart控件简单示例工程
    最近由于工作的原因,接触了一些windows图表开发的东西,网上也有些相关的博客资料,本人根据一步步的配置,成功的将工程建立。 由于VC++6.0中并不包含MSChart控件,所以我将MSChart控件的资料放这,以方便大家下载,并在计算机上注册。至于windows不同系统注册的问题网上有不少介绍的。 MSChart.exe: http://pan.baidu.com/share/link?shareid=100879&uk=1798273438 MSCHART20.OCX: http://pan.baidu.com/share/link?shareid=100882&uk=1798273438
    2022-04-30 02:53:15下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载