SilverScreen Solid Modeler

CmdUI handling for Developer IDs

CmdUI handling for Developer IDs

Previous topic Next topic  

CmdUI handling for Developer IDs

Previous topic Next topic JavaScript is required for the print function  

SilverPlusEllipse

 

CmdUI handling for Developer IDs

 


For the range of command IDs between ID_FIRST_DEVELOPER_ID and ID_LAST_DEVELOPER_ID, the default SilverScreen behavior is to enable them automatically.

 

If you desire a different behavior, then handle the WM_CMDUI_ENABLE (0x402) message in your subclassed window procedure. The wParam parameter is the command ID, and the lParam parameter is the address of a CCmdUi object. The CCmdUi object may then be used to call Enable, or SetCheck, or whatever. This is more fully described in the topic A Note on Command IDs