CAD display or hide 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/91360399

The main use of Function:

 

_DMxDrawX :: HideToolBarControl

 

Hide or display the toolbar button. Details are as follows:

 

parameter Explanation

BSTR pszToolBarName

Toolbar Name

BSTR pszControlName

Button name, more button names, may be separated by commas, empty, hide or show all the buttons

VARIANT_BOOL isHide

Whether hidden buttons

VARIANT_BOOL isAutoRecalcLayout

Whether to automatically re-layout tool bars on the window

 

For example: hidden line drawing on the drawing toolbar button and painted rectangle:

 

1

mxocx.HideToolBarControl(_T("绘图工具"),_T("绘线,绘矩形框"),true,true);

 

related question

•  How to build a map, and change the color?

•  how to set up an entity hyperlinks?

•  How to Draw a tag to your pages?

•  How to set the object grips display color?

•  how to get coordinate information pl line?

•  drawings inside How to print the page to add header and footer?

•  How to add a text style, and set the current text style, etc.

•  How to dynamically draw a straight line with a length of?

•  how to select a set point in the structure?

•  how dynamic draw polylines?

Guess you like

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