第5 章: Windows Message Mapping 2008-01-11 09:04 207人阅读 评论(0) 收藏
2008-01-11 09:04
330 查看
第5 章: Windows Message Mapping
いち.消息流程
◙ WM_CREATE
first message to a view . use ONCreate 无法截获. 在 OnInitalUpdate可以使用, but this function maybe use more than one time .
◙ WM_CLOSE
OnClose to close the window, use CDocument::SaveModified for safe.
◙ WM_QUERYENDSESSION
It is sure that many programs are running when you want to close the windows. So, these session must be end before the windows are closed .
And then , using WM_QUERYENDSESSION in OnQueryEndSession function.
◙ WM_DESTROY
WM_DESTROY after WM_CLOSE .->OnDestroy.
the view is visable but it and its child are still active.
-> call base OnDestroy.
◙ WM_NCDESTROY
last message before window destroyed.
child has been destroyed .
->OnNCDestroy ->base OnNCDestroy.
The 动态 view use PostNCDestroy.
いち.消息流程
◙ WM_CREATE
first message to a view . use ONCreate 无法截获. 在 OnInitalUpdate可以使用, but this function maybe use more than one time .
◙ WM_CLOSE
OnClose to close the window, use CDocument::SaveModified for safe.
◙ WM_QUERYENDSESSION
It is sure that many programs are running when you want to close the windows. So, these session must be end before the windows are closed .
And then , using WM_QUERYENDSESSION in OnQueryEndSession function.
◙ WM_DESTROY
WM_DESTROY after WM_CLOSE .->OnDestroy.
the view is visable but it and its child are still active.
-> call base OnDestroy.
◙ WM_NCDESTROY
last message before window destroyed.
child has been destroyed .
->OnNCDestroy ->base OnNCDestroy.
The 动态 view use PostNCDestroy.
相关文章推荐
- 检测dll是32/64位 ? 分类: VC++ windows驱动程序WDM 2015-03-09 08:18 411人阅读 评论(0) 收藏
- CM_RESOURCE_LIST structure 分类: windows驱动程序WDM 2013-07-25 15:49 543人阅读 评论(0) 收藏
- Windows驱动开发工具 WDK 学习笔记(1) 分类: windows驱动程序WDM 2013-08-01 11:08 566人阅读 评论(0) 收藏
- windows下bat批处理文件语法 2015-07-27 11:25 8人阅读 评论(0) 收藏
- 使用DirectDraw直接显示YUV视频数据 分类: windows驱动程序WDM 2013-08-15 11:44 1075人阅读 评论(0) 收藏
- MinnowBoard MAX 硬件开发板 分类: Windows-嵌入式 生活百科 2015-06-26 18:01 491人阅读 评论(0) 收藏
- 过滤驱动加密文件(代码) 分类: windows驱动程序WDM 2013-09-25 14:40 611人阅读 评论(0) 收藏
- 实战DeviceIoControl 之四:获取硬盘的详细信息 分类: windows驱动程序WDM 2013-09-25 14:48 397人阅读 评论(0) 收藏
- DriverStudio 和 WDF驱动 通过GUID获取设备句柄的差别 分类: windows驱动程序WDM 2013-10-30 08:56 812人阅读 评论(0) 收藏
- RTP 协议 分类: arm-linux-Ubuntu windows驱动程序WDM 2013-08-16 10:53 442人阅读 评论(0) 收藏
- 用vs2013+velt-0.1.4进行嵌入式开发 进行海思平台 UBOOT 开发 分类: arm-linux-Ubuntu Windows-嵌入式 2015-06-27 11:59 393人阅读 评论(0) 收藏
- 文件监控(教学版) 分类: windows驱动程序WDM 2013-09-25 14:41 666人阅读 评论(0) 收藏
- 实战DeviceIoControl 之五:列举已安装的存储设备 分类: windows驱动程序WDM 2013-09-25 14:48 366人阅读 评论(0) 收藏
- 不同WINDOWS平台下磁盘逻辑扇区的直接读写 分类: 磁盘的扇区读写 2015-04-29 10:48 341人阅读 评论(0) 收藏
- 利用Windows性能计数器(PerformanceCounter)监控 分类: windows驱动程序WDM VC++ 2015-03-10 10:44 369人阅读 评论(0) 收藏
- windows bat脚本编写 2015-07-27 11:27 5人阅读 评论(0) 收藏
- USB设备驱动概述 分类: USB OTG驱动 windows驱动程序WDM 2015-06-10 18:15 426人阅读 评论(0) 收藏
- Windows 7下阻止系统关机 分类: windows驱动程序WDM 2014-04-29 14:43 562人阅读 评论(1) 收藏
- xp+WinDBG+VMware调试内核 分类: windows驱动程序WDM 2013-09-25 14:43 431人阅读 评论(0) 收藏
- 实战DeviceIoControl 之六:访问物理端口 分类: windows驱动程序WDM 2013-09-25 14:49 332人阅读 评论(0) 收藏