资 源 简 介
目标
设置组合键来触发某一菜单命令。例如,用A l t + D组合键删除视图中所选项目。
策略
首先,使用Developer Studio提供的加速键编辑器(Accelerator Editor)创建一项资源,当视
图被创建、使用、拥有输入焦点时该资源被装入。在视图没有输入焦点时或当我们想定制键
的处理时,我们也可以手工处理W M _ K E Y D O W N窗口命令。-Goal Setting key combination to trigger a menu command. For example, A lt+ D key combination to delete the selected item view. Strategy First, use Developer Studio to provide the acceleration of key editor (Accelerator Editor) to create a resource, when the view is created, use, possession input focus when the resources are loaded. In view of the focus has not been entered or when we want to deal with custom keys, we can also deal with WM _ KEYDOWN manual command window.