共用方式為


IVsUIHierarchyWindow2.SetWindowHelpTopic(String, UInt32) Method

Definition

Sets the Help topic for the hierarchy window.

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

Parameters

lpszHelpFile
String

[in] Help file name.

dwContext
UInt32

[in] Context for the Help topic.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

When the user presses the F1 key in the active hierarchy window, this method sets the corresponding Help topic for that window. The Help topic is specific to the hierarchy window as a whole — not to items within the hierarchy window.

Applies to