CAD disable the toolbar a button (web version)

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/u013725001/article/details/91360391

The main use of Function:

 

_DMxDrawX::EnableToolBarButton

 

A command button to disable or activate controls on the toolbar, as detailed below:

 

parameter Explanation

BSTR pButtonName

Toolbar button name

VARIANT_BOOL isEnable

Whether disabled

 

For example: line drawing button disabled on the Drawing toolbar:

 

1

mxocx.EnableToolBarButton (_T("绘线"),true);

Guess you like

Origin blog.csdn.net/u013725001/article/details/91360391