Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Chart User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

12.7 Predefined Menu Commands

SRGraphView and SRGScrollView include command handlers for several predefined command IDs. The command IDs and their handlers are summarized in Table 20.

Table 20: Predefined Menu Commands

Command ID Value Handler
ID_GRAPH_EDIT 0xd101 OnGraphEdit
ID_GRAPH_ZOOMOUT 0xd102 OnGraphZoomout
ID_GRAPH_ZOOMOUTALL 0xd0fc OnGraphZoomoutAll
ID_GRAPH_PAGESETUP 0xd103 OnGraphPagesetup
ID_GRAPH_PAGESETUP2 0xd144 OnGraphPagesetup2
ID_GRAPH_WIZARD 0xd104 OnGraphWizard
ID_FILE_SAVE_AS_DIB 0xd105 OnSaveAsDib
ID_FILE_SAVE_AS_JPEG 0xd106 OnSaveAsJpeg
ID_EDIT_COPY   OnEditCopy

In most cases, especially if the application has been created with the Objective Chart AppWizard, these menu items already exist in the resources of the application and handlers have already been attached to them. If the view was not created by the AppWizard, it may be necessary to create menu items for them.

To create menu items for the predefined commands:

  1. Create a menu in the desired place using the resource editor.

  2. In the properties for that menu item, change the ID to use the numeric value shown above for the desired function. For example, an application may have a File|Page setup entry in its menus.

  3. To attach the new menu item to the ready-made handler, modify the properties so that the ID of the menu item reads IDC_FILE_PAGESETUP=OxD103.


    The second time that this property is reviewed, the numeric assignment will have disappeared. This is normal and the ID does not need to be modified further.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.