Allows you to dynamically draw an add-in toolbar button.
NOTE: Click the Members link, located near the top of the topic, to see this interface's methods and properties.| Visual Basic | |
|---|---|
Public Interface IEdmAddInDrawButton5 | |
| C# | |
|---|---|
public interface IEdmAddInDrawButton5 | |
| C++/CLI | |
|---|---|
public interface class IEdmAddInDrawButton5 | |
This interface inherits from IUnknown. See Using and Implementing IUnknown (COM).
To dynamically draw a toolbar button:
- Create a class that implements both IEdmAddIn5 and IEdmAddInDrawButton5.
- Implement IEdmAddIn5::GetAddInInfo, calling IEdmCmdMgr5::AddCmd with lEdmMenuFlags setting the EdmMenuFlags.EdmMenu_OwnerDrawToolbarButton flag.
- Implement IEdmAddInDrawButton5::DrawToolbarButton to draw a toolbar button when called by SOLIDWORKS PDM Professional.
To draw a fixed toolbar button:
- Call IEdmCmdMgr5::AddToolbarImage.
- Call IEdmCmdMgr5::AddCmd, passing in the toolbar button image ID used in IEdmCmdMgr5::AddToolbarImage.