CAD disable a command button or activate controls on the toolbar (com interfaces c # language)

Disable or activate a command button controls toolbar


The main use of Function:


_DMxDrawX::EnableToolBarButton


Disable or activate the control of a command button on the toolbar. Details are as follows:


parameter Explanation

BSTR pButtonName

Toolbar button name

VARIANT_BOOL isEnable

Whether disabled


For example page deactivated On button code:


 axMxDrawX1.EnableToolBarButton ( "Open dwg file", false);

Guess you like

Origin www.cnblogs.com/yzy0224/p/11095868.html