Sometimes messages generate other messages as a result of DefWindowProc processing. For example, suppose you run HELLOWIN and you eventually click the Close button, or suppose you select Close from the system menu using either the keyboard or the mouse. DefWindowProc processes this keyboard or mouse input. When it detects that you have selected the Close option, it sends a WM_SYSCOMMAND message to the window procedure. WndProc passes this message to DefWindowProc. DefWindowProc responds by sending a WM_CLOSE message to the window procedure. WndProc again passes this message to DefWindowProc. DefWindowProc responds to the WM_CLOSE message by calling DestroyWindow. DestroyWindow causes Windows to send a WM_DESTROY message to the window procedure. WndProc finally responds to this message by calling PostQuitMessage to put a WM_QUIT message in the message queue. This message causes the message loop in WinMain to terminate and the program to end. 其中,When it detects that you have....中的it指的是windows还是defwndproc?
WM_SYSCOMMAND是进消息队列?还是直接发给wndproc?
这个问题困扰我多时,请问有什么样的方法设置断点来调试?看清楚消息走向,或者程序流程?Sometimes messages generate other messages as a result of DefWindowProc processing
这句话如何理解,是DefWindowProc直接产生消息发送给wndproc?还是产生消息发给windows,然后由windows发给wndproc?谢谢大家!
WM_SYSCOMMAND是进消息队列?还是直接发给wndproc?
这个问题困扰我多时,请问有什么样的方法设置断点来调试?看清楚消息走向,或者程序流程?Sometimes messages generate other messages as a result of DefWindowProc processing
这句话如何理解,是DefWindowProc直接产生消息发送给wndproc?还是产生消息发给windows,然后由windows发给wndproc?谢谢大家!
解决方案 »
- 多文档程序中老是报错 error C2065: 'AddDocTemplate' : undeclared identifier
- readfile读到坏扇区不返回,使用非阻塞模式也是如此,各位高手有办法吗
- CProptySheet 求助!!!
- MFC 自会控件
- 超酷QQ界面源码,但不知道怎么配置?请赐教.谢谢!!!
- splitterWnd的应用,单文档分离窗口
- 谁了解ARP地址欺骗技术,能推荐些资料吗
- 谁能告诉我,屏幕对象捉图怎么实现????
- 高分求教。如何制作图象渐显和渐隐的启动画面?分不够再加。
- 怎样列举系统中正在运行的所有进程
- 请帮助,有关ADO操作SQL Server数据库的问题,代码详细。
- 关于在主对话框里读取和设置属性页里ComboBox控件的问题
类似与SendMessage()