正在加载图片...
VC++ Programming@UESTC Chapter 12 Menus, Keyboard Accelerators, the rich Edit Control and Property sheets Command Message Handling The Id connects the menu items to the message handling. Make menu items first, then map the associated Id to the application Use Class wizard to add command message handlers in view class Step One: Use the framework to make your life easier Choose the view class under the"Class Name 2. Select Objects ID you want to respond 3. Choose"COMMAND inside"Messages, panel and you' ll see a popup dialog window 4. Click Enter", and go to view class"*. h?and"*.cpp?to see what's added there Step two: add codes inside view class to do the real work 0VC++ Programming @ UESTC 10 ⚫ Command Message Handling The ID connects the menu items to the message handling. Make menu items first, then map the associated ID to the application. Use ClassWizard to add command message handlers in view class. Step One: Use the framework to make your life easier 1. Choose the view class under the “Class Name”; 2. Select Object’s ID you want to respond; 3. Choose “COMMAND” inside “Messages” panel and you’ll see a popup dialog window; 4. Click “Enter”, and go to view class “*.h” and “*.cpp” to see what’s added there. Step two: add codes inside view class to do the real work. Chapter 12 Menus, Keyboard Accelerators, the RichEdit Control and Property Sheets
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有