Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalprotection of seialized file Pin
28-May-01 10:27
suss28-May-01 10:27 
GeneralRe: protection of seialized file Pin
markkuk28-May-01 20:27
markkuk28-May-01 20:27 
GeneralRe: protection of seialized file Pin
28-May-01 20:50
suss28-May-01 20:50 
GeneralRemoving point labels in TeeChart ActiveX Pin
28-May-01 9:40
suss28-May-01 9:40 
GeneralGeneral Question Pin
mr200328-May-01 8:56
mr200328-May-01 8:56 
GeneralRe: General Question Pin
ThunderBird28-May-01 9:26
ThunderBird28-May-01 9:26 
GeneralMFC and WinHelp. Arghh!!! Pin
Anders Molin28-May-01 8:46
professionalAnders Molin28-May-01 8:46 
GeneralRe: MFC and WinHelp. Arghh!!! Pin
Tomasz Sowinski28-May-01 8:57
Tomasz Sowinski28-May-01 8:57 
You need to handle MFC-defined WM_HELPINFO message - that's the place to call WinHelp. The tricky part is that handler gets called for both dialog and control help. So you need also to handle WM_SYSCOMMAND, like this:

void CMyDlg::OnSysCommand(UINT nID, LPARAM lParam) 
{
if (nID == SC_CONTEXTHELP)
{
	m_bContextHelp = TRUE;
}
CDialog::OnSysCommand(nID, lParam);
if (nID == SC_CONTEXTHELP)
{
	m_bContextHelp = FALSE;
}
}


m_bContextHelp is a BOOL data member which is tested in OnHelpInfo handler. If you have more than one dialog in your app put this stuff into common base class.

Tomasz Sowinski -- http://www.shooltz.com.pl
GeneralRe: MFC and WinHelp. Arghh!!! Pin
Anders Molin28-May-01 9:24
professionalAnders Molin28-May-01 9:24 
GeneralRe: MFC and WinHelp. Arghh!!! Pin
PJ Arends28-May-01 9:42
professionalPJ Arends28-May-01 9:42 
GeneralRe: MFC and WinHelp. Arghh!!! Pin
Tomasz Sowinski28-May-01 9:49
Tomasz Sowinski28-May-01 9:49 
GeneralRe: MFC and WinHelp. Arghh!!! Pin
PJ Arends28-May-01 10:52
professionalPJ Arends28-May-01 10:52 
GeneralRe: MFC and WinHelp. Arghh!!! Pin
Tomasz Sowinski28-May-01 11:00
Tomasz Sowinski28-May-01 11:00 
GeneralRe: MFC and WinHelp. Arghh!!! Pin
Anders Molin28-May-01 11:00
professionalAnders Molin28-May-01 11:00 
QuestionUse a texture as background? Pin
Rickard Andersson2028-May-01 8:34
Rickard Andersson2028-May-01 8:34 
AnswerRe: Use a texture as background? Pin
Christian Graus28-May-01 11:30
protectorChristian Graus28-May-01 11:30 
AnswerRe: Use a texture as background? Pin
Michael Dunn28-May-01 12:01
sitebuilderMichael Dunn28-May-01 12:01 
AnswerRe: Use a texture as background? Pin
30-May-01 4:24
suss30-May-01 4:24 
GeneralHandling Return Key within Edit Control: Need advise from Seasoned MFC Gurus Pin
28-May-01 7:38
suss28-May-01 7:38 
GeneralRe: Handling Return Key within Edit Control: Need advise from Seasoned MFC Gurus Pin
Tomasz Sowinski28-May-01 7:50
Tomasz Sowinski28-May-01 7:50 
GeneralRe: Handling Return Key within Edit Control: Need advise from Seasoned MFC Gurus Pin
ThunderBird28-May-01 8:30
ThunderBird28-May-01 8:30 
GeneralProblem to compil Pin
28-May-01 5:54
suss28-May-01 5:54 
GeneralRe: Problem to compil Pin
Ghazi H. Wadi28-May-01 6:29
Ghazi H. Wadi28-May-01 6:29 
GeneralCWinApp::CloseAllDocuments()... Pin
l a u r e n28-May-01 3:33
l a u r e n28-May-01 3:33 
GeneralRe: CWinApp::CloseAllDocuments()... Pin
Tomasz Sowinski28-May-01 3:57
Tomasz Sowinski28-May-01 3:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.