CWnd::SetWindowContextHelpId
Wywołanie tej funkcji Członkowskich skojarzyć identyfikator kontekstu pomocy z określonego okna.
BOOL SetWindowContextHelpId(
DWORD dwContextHelpId
);
Parametry
- dwContextHelpId
Identyfikator kontekstu pomocy.
Wartość zwracana
Niezerowa, jeśli funkcja jest pomyślne; 0 inaczej.
Uwagi
Jeśli okno potomne ma identyfikator kontekstu pomocy dziedziczy identyfikator okna nadrzędnego.Podobnie jeśli własnością okno nie ma identyfikatora kontekstu pomocy, dziedziczy identyfikator okno jego właściciela.To dziedziczenie identyfikatorów kontekstu Pomoc umożliwia aplikacji tylko jednego identyfikatora dla okna dialogowego i wszystkie jego formantów.
Przykład
// 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);
Wymagania
Nagłówek: afxwin.h