IVsUIHierarchyWindow2.SetWindowHelpTopic(String, UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为 "层次结构" 窗口设置 "帮助" 主题。
public:
int SetWindowHelpTopic(System::String ^ lpszHelpFile, System::UInt32 dwContext);
public:
int SetWindowHelpTopic(Platform::String ^ lpszHelpFile, unsigned int dwContext);
int SetWindowHelpTopic(std::wstring const & lpszHelpFile, unsigned int dwContext);
public int SetWindowHelpTopic (string lpszHelpFile, uint dwContext);
abstract member SetWindowHelpTopic : string * uint32 -> int
Public Function SetWindowHelpTopic (lpszHelpFile As String, dwContext As UInteger) As Integer
参数
- lpszHelpFile
- String
中帮助文件名。
- dwContext
- UInt32
中帮助主题的上下文。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
实现
注解
当用户在 "活动层次结构" 窗口中按 F1 键时,此方法将为该窗口设置相应的帮助主题。 "帮助" 主题特定于 "层次结构" 窗口,而不是 "层次结构" 窗口中的项。