摘要
以在VisualC++中利用MFC机制创建任意个按钮为例,说明了在VisualC++实现任意个控件的创建。介绍在MFC机制下将多个同类控件的消息映射到同一处理函数的方法以及该机制下的消息映射过程,通过对MFC机制下的消息映射过程的分析,实现了任意多个按钮的消息处理。
This article mainly describes how to create any number of controls by creating any number of buttons with MFC in Visual C++ environment. It covers how MFC maps control-notification messages for a range of control IDs to a single handler and the process of message mapping of MFC. By the analysis of message mapping of MFC, it implements the message process of any number of buttons.
出处
《计算机工程与设计》
CSCD
2003年第8期55-57,共3页
Computer Engineering and Design