CWnd::SetWindowContextHelpId

지정한 창에 도움말 컨텍스트 식별자를 연결 하려면이 멤버 함수를 호출 합니다.

BOOL SetWindowContextHelpId(
   DWORD dwContextHelpId 
);

매개 변수

  • dwContextHelpId
    도움말 컨텍스트 id입니다.

반환 값

함수가 성공 하면 0이 아닌. 그렇지 않으면 0입니다.

설명

자식 창에는 도움말 컨텍스트 식별자 없으면 부모 창의 식별자를 상속 합니다.마찬가지로 소유 된 창을 도움말 컨텍스트 식별자를 없으면 소유자 창 식별자를 상속 합니다.이 상속 도움말 컨텍스트 식별자를 대화 상자에 대 한 식별자와 모든 해당 컨트롤을 설정할 수가 있습니다.

예제

// 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