The main use of Function:
MxDrawXCustomFunction::Mx_HideToolBarControl
Hide or display the toolbar button. Details are as follows:
parameter | Explanation |
---|---|
IN LPCTSTR pszToolBarName |
Workers Article name |
IN LPCTSTR pszControlName = NULL |
Button name, more button names, may be separated by commas, empty, hide or show all the buttons |
IN BOOL isHide = TRUE |
Whether hidden buttons |
IN BOOL isAutoRecalcLayout = TRUE |
Whether to automatically re-layout tool bars on the window |
For example: VB code hidden line drawing on the drawing toolbar button and painted rectangle.
1
2
3
4
5
|
Dim param As MxDrawResbuf
Set param = New MxDrawResbuf
param.AddString
"绘图工具"
param.AddString
"绘线,绘矩形框"
MxDrawX1.CallEx
"Mx_HideToolBarControl"
, param
|