Click here to Skip to main content
15,892,768 members
Articles / Desktop Programming / MFC
Tip/Trick

Disable the context sensitive help

Rate me:
Please Sign up or sign in to vote.
3.50/5 (2 votes)
14 Apr 2011CPOL 7.9K   1  
Sometimes we tend to enable the context sensitive help while creating a project, how to disable that later and get rid or error/information pops on clicking F1 while the application is running.
Open the mainfrm.cpp and comment out the help commands


SQL
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
    ON_WM_CREATE()
    // Global help commands
//  ON_COMMAND(ID_HELP_FINDER, &CFrameWnd::OnHelpFinder)
//  ON_COMMAND(ID_HELP, &CFrameWnd::OnHelp)
//  ON_COMMAND(ID_CONTEXT_HELP, &CFrameWnd::OnContextHelp)
//  ON_COMMAND(ID_DEFAULT_HELP, &CFrameWnd::OnHelpFinder)
        ON_MESSAGE(WM_SET_STATUS_BAR_TEXT, &CMainFrame::SetStatusBarText)
END_MESSAGE_MAP()

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
India India
This member doesn't quite have enough reputation to be able to display their biography and homepage.

Comments and Discussions

 
-- There are no messages in this forum --