Description: 编写过MFC程序的朋友都知道,通过资源编辑器编辑菜单项,设定菜单项ID,然后MFC内部通过该ID来映射菜单命令处理函数和菜单界面更新函数。我设想撇开MFC的资源编辑,在MFC程序中通过xml文件来进行界面配置,然后利用字符串来映射消息处理函数。借助boost库,我实现了这一设想。具体就是在xml文件指定一个字符串,然后通过这个字符串就能找到它的命令消息处理函数和界面更新命令消息处理函数。-MFC write-off procedures friends all know, through the resource editor to edit the menu item, set the menu item ID, and MFC-house by the ID to map menu and menu command handling function update function. I imagine MFC resource editor aside, the MFC program carried out by the interface configuration xml file, and then use the string to map the message processing function. Using boost libraries, I realized that vision. Specific xml file is to specify a string, then the string can find its command message processing functions and interface update command message processing function. Platform: |
Size: 11309056 |
Author:朱小明 |
Hits: