次の方法で共有


CWnd::SetWindowContextHelpId

指定されたペインにヘルプ コンテキスト識別子を関連付けるには、このメンバー関数を呼び出します。

BOOL SetWindowContextHelpId( 
   DWORD dwContextHelpId  
);

パラメーター

  • dwContextHelpId
    ヘルプ コンテキスト識別子。

戻り値

正常終了した場合は 0 以外を返します。それ以外の場合は 0 を返します。

解説

子ウィンドウがヘルプ コンテキスト識別子が、親ウィンドウの識別子を継承します。 同様に、所有されているウィンドウがヘルプ コンテキスト識別子が、オーナー ウィンドウの識別子を継承します。 ヘルプ コンテキスト識別子の継承は、このダイアログ ボックスの、1 種類の識別子とすべてのコントロールを配置したアプリケーションができます。

使用例

// The following code fragment is from CMyDlg::OnInitDialog 
// CMyDlg is derived from CDialog. 

// Associate a help context id with the control. 
// IDC_TESTHELP_CONTROL is the id of the control 
// and HIDC_TESTHELP_CONTROL is its help context 
// id associated with the control.
CWnd* pWnd = GetDlgItem(IDC_TESTHELP_CONTROL);
pWnd->SetWindowContextHelpId(HIDC_TESTHELP_CONTROL);

必要条件

ヘッダー: afxwin.h

参照

関連項目

CWnd クラス

階層図

CWnd::GetWindowContextHelpId