在Windows操作系统里,当窗口显示之后,它就可以接收到系统源源不断地发过来的消息,然后窗口就需要处理这些消息,因此就需要一个函数来处理这些消息。在API里定义了一个函数为回调函数,当系统需要向窗口发送消息时,就会调用窗口给出的回调函数WindowProc,如果WindowProc函数不处理这个消息,就可以把它转向DefWindowProc函数来处理,这是系统的默认消息处理函数。当你按下菜单,或者点击窗口时,窗口需要运行这个消息处理函数。简单的说,就是窗口消息处理函数
Outline 窗口模块提供了有关出现在源代码中的过程、变量、声明以及函数的快速视图。
The Outline window module provides a quick view on procedures, variables, declarations, and functions that appear in source code.
子类化函数然后把该消息传递给原始窗口过程。
The subclass function then passes the message to the original window procedure.
如果你没有窗口或者是你不想在窗口过程中处理定时器消息,你必须在函数的窗口句柄的地方传递一空值。
If you don't have a window or you don't want to process the timer messages in the window procedure, you must pass NULL to the function in place of a window handle.
应用推荐