This method adds one or more commands to a voice menu. The added commands are appended to any existing commands in the menu.
HRESULT Add( DWORD dwCmdNum, SDATA dData, DWORD *pdwCmdStart);
For Auto PC, applications should use the IAPCSpeech::AddVMenuCommand method instead, but IVCmdMenu::Add is still available to Auto PC applications.
Commands are numbered sequentially from 1 to n. New commands are added to the end of the menu, so the first command added is numbered n+1.
For best results, deactivate the voice menu before calling Add. Otherwise, the menu must be deactivated, recompiled, and reactivated before Add returns. If the menu is already deactivated when Add is called, the menu is not recompiled until the application activates it again.
If a command string includes a list name, you can use IVCmdMenu::ListSet to set the phrases that the user can substitute for the list name when speaking the command.