Bagikan melalui


CUserTool::SetCommand

Sets the application that the user tool runs.

void SetCommand(
   LPCTSTR lpszCmd 
);

Parameters

  • [in] lpszCmd
    Specifies the new application to be associated with the user tool.

Remarks

Call this method to set a new application that the user tool runs. The method destroys the old icon and loads a new icon from the given application. If it cannot load an icon from the application, it loads the default icon for a user tool by calling CUserTool::LoadDefaultIcon.

Requirements

Header: afxusertool.h

See Also

Reference

CUserTool Class

Hierarchy Chart