BCGControlBar Pro for MFC
void CBCGPUserTool::SetCommand ( LPCTSTR  lpszCmd)

Associates a command with the user tool.

Call this function to associate a new command (executable) with the user tool. The function destroys the old icon and tries to load a new icon from the given executable file or takes a default tool icon from the BCGControlBar Library resources.

Parameters
lpszCmdSpecifies the new command to be associated with the user tool.