Version: |
1.2 |
Description: |
Adds a command to right button pop-up menu used with the current tool. |
Declaration: |
|
C/C++ |
extern "C" void WINAPI VCAddPopupCommand(char* szNativeCmd, short iPlacement); |
Delphi |
procedure VCAddPopupCommand(szNativeCmd: PAnsiChar; iPlacement: Smallint); stdcall; |
ActiveX/COM |
Sub AddPopupCommand(ByVal szNativeCmd As String, ByVal iPlacement As Integer) |
Parameters: |
szNativeCmd - the name of a
command as defined in CmdExt.vcdef. |
Notes: |
While pop-up menus can be defined independently by the user, VCAddPopupCommand allows a native command to be added to the pop-up of the currently active tool for only the current session of that tool. When the tool is no longer active, any commands added to the tool will be lost and need to be re-added if required for the next instance of that tool. If the pop-up needs to be cleared of all default commands, VCDeletePopupMenu will remove all the existing defaults for the current instance of the tool. VCDeletePopupMenu will not affect commands added with VCAddPopupCommand. These commands only work on the current tool i.e. there must be a tool active in order to add to or clear the contents of the pop-up menu. |
See Also: |