Using Owner-Drawn Menus

When using owner-drawn menus, you must make the menu names available to support speech functionality. There are two ways to do this:

  • Expose the menu item name by using the MSAAMENUINFO structure.
  • Provide an option to replace graphic menus with standard text menus when an accessibility aid is active. If the SystemParametersInfo function returns TRUE with its uiAction parameter set to SPI_GETSCREENREADER, use standard menus.The application should watch for the WM_SETTINGSCHANGE message and respond by querying the state of this option and adjusting its display appropriately. For example, Microsoft Visual Studio provides an option to use standard menus instead of the custom menus that are displayed by default.