This method adds a command to the voice menu.
HRESULT IAPCSpeech::AddVMenuCommand( PIVCMDMENUW pMenu, LPTSTR szCmdString, UINT dwCmdID, DWORD dwFlags, DWORD dwVoiceCommand );
Command |
Description |
cmd\tlong Help\tshort Help | Has both long and short voice Help. |
cmd | There is no long voice Help, and short voice Help is the same as command. |
cmd\t\tshort Help | There is no long voice Help, and short voice Help is different from command. |
cmd\tlong Help\t | Has long voice Help but no short voice Help. |
cmd\tlong Help | Has long voice Help, and short voice Help is the same as command. |
An appropriate HRESULT value is returned.
To avoid duplicating string identifiers if your application uses speech enabled controls, use the ranges shown in the following table to assign string identifiers in resource file.
String identifier |
Range |
Application | 0 to 0x7FFF |
Speech enabled controls | 0x8000 to 0xFFFF |
The string that is passed can be separated by a tab to include context-sensitive long voice Help and short voice Help strings. For more information, see VoiceHelpStart.