|
||
BOOL on_sdc_menu_command(UINT CommandID);
UINT CommandID; // An unsigned-integer
|
|
|||
Synopsis |
#include "silver.h"
The on_sdc_menu_command function is used to pass a command message to SilverEngine for handling if it has a menu active, for instance a pop-up menu while picking.
|
|
||
Parameters |
CommandID is a Win32 command identifier, for instance WM_COMMAND
|
|
||
Return Value |
on_sdc_menu_command returns TRUE if the command was handled by SilverEngine and FALSE otherwise.
|
|
||
Remarks |
on_sdc_menu_command operates similarly to the MFC function PreTranslateMessage. It will only handle the command when there is an interactive menu active, in which case it should be ignored by your application. It is likely that the command ids being sent from a SilverEngine menu would interfere with, or be ignored by, your application otherwise.
|
|
||
See Also |
|
|
||
Example |
The following code shows the typical usage of on_sdc_menu_command in an MFC application; for a complete example see the SilverEngine, EngineShell sample:
|
|