How to: Display Command Information in the Status Bar在状态栏中显示命令信息
2012-04-26 11:13
549 查看
When you run the Application Wizard to create the skeleton of your application, you can easily support a toolbar and a status bar. A single option in the Application Wizard supports both. When a status bar is present, the framework automatically provides
helpful feedback as the user of your application moves the mouse through items in the menus. The framework automatically displays a prompt string in the status bar when the menu item is being selected. For example, when the user drags the mouse over the Cut
item on the Edit menu, the framework might display "Cut the selection and put it on the Clipboard" in the message area of the status bar. The prompt helps the user understand the menu item's purpose. This also works when the user clicks a toolbar button.
You can easily add to this status-bar help by defining prompt strings for the menu items that you add to the program. To do so, provide the prompt strings when you edit the properties of the menu item in the menu editor.
The strings you define this way are stored in your application's resource file; they have the same IDs as the commands they explain.
By default, the Application Wizard adds the ID for a standard prompt, "Ready," which is displayed when the program is waiting for new messages. If you specify the Context-Sensitive Help option in the Application Wizard, the ID for a help prompt, "For Help,
press F1," is added to your application. This ID is AFX_IDS_IDLEMESSAGE.
关键字: AFX_IDS_IDLEMESSAGE 资源串ID 命令ID
helpful feedback as the user of your application moves the mouse through items in the menus. The framework automatically displays a prompt string in the status bar when the menu item is being selected. For example, when the user drags the mouse over the Cut
item on the Edit menu, the framework might display "Cut the selection and put it on the Clipboard" in the message area of the status bar. The prompt helps the user understand the menu item's purpose. This also works when the user clicks a toolbar button.
You can easily add to this status-bar help by defining prompt strings for the menu items that you add to the program. To do so, provide the prompt strings when you edit the properties of the menu item in the menu editor.
The strings you define this way are stored in your application's resource file; they have the same IDs as the commands they explain.
By default, the Application Wizard adds the ID for a standard prompt, "Ready," which is displayed when the program is waiting for new messages. If you specify the Context-Sensitive Help option in the Application Wizard, the ID for a help prompt, "For Help,
press F1," is added to your application. This ID is AFX_IDS_IDLEMESSAGE.
关键字: AFX_IDS_IDLEMESSAGE 资源串ID 命令ID
相关文章推荐
- XAF 如何扩展应用程序模型(How to: Extend the Application Model )<一> ListView显示页脚信息
- 164 Using the LIST command in Recovery Manager (RMAN), which two pieces of information from the RMAN
- Centos下_MysqL5.7在使用mysqldump命令备份数据库报错:mysqldump: [Warning] Using a password on the command line interface can be insecure.
- How use Instruments and display the console in Command Lines applications
- (转)3.3设置状态栏(Setting Up the Status Bar)
- XML错误信息Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.0.xsd). For more information, right click on the message in the Problems View ...
- 174 Using the LIST command in Recovery Manager (RMAN), which two pieces of information from the RMAN
- Get and display the size of file and directory in Linux system using du command 获取和现实linux文件大小(三)
- How use Instruments and display the console in Command Lines applications
- Play Framework 错误信息显示 (error message display In play framework)
- vgdisplay命令_Linux vgdisplay 命令用法详解:显示LVM卷组的信息
- Display file information in the document window
- 每日一命令(13)free - (Display amount of free and used memory in the system)
- 【vim】【statusline】【状态栏】设置,显示更多有用的信息
- 35.You executed the command to create a password file in the database server:
- Android使用fitsSystemWindows属性实现–状态栏【status_bar】各版本适配方案
- Display the size of all tables in Sql Server 2005
- linux dmesg命令参数及用法详解(linux显示开机信息命令)
- Your responsive Fusion theme will not display properly in IE 6-8 until CSS aggregation is enabled.
- Xcode4: Running Application Tests From The Command Line in iOS