MessageBox Help
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello all, I'm trying to figure out what I'm not seeing here. Check out the code fragement... void CHELPTSTDlg::OnButton1() { AfxMessageBox("Ooh baby", MB_HELP, 1234); } BOOL CHELPTSTDlg::OnHelpInfo(HELPINFO* pHelpInfo) { CString c; c.Format("In Help info, ID = %d", pHelpInfo->dwContextId); AfxMessageBox(c); return CDialog::OnHelpInfo(pHelpInfo); } The pHelpInfo->dwContextId variable is ALWAYS 0 in the OnHelpInfo handler. :confused: Anyone have any ideas what I'm missing? Simply trying to start WinHelp with the context ID I pass in the message box. Thanks! Paul...