Link to home
Start Free TrialLog in
Avatar of TungVan
TungVan

asked on

Help menu


Hi,

I need to debug someone's program and I am having some problem (and in addition, i am beginner in mfc).  The program has a help button with id = ID_HELP_FINDER

When i do a search, this is what i found:

BEGIN_MESSAGE_MAP(CsUIBaseMDIFrame, CMDIFrameWnd)

  ON_WM_DESTROY()
  ON_COMMAND(ID_HELP_FINDER, CMDIFrameWnd::OnHelpFinder)
  ON_COMMAND(ID_HELP, CMDIFrameWnd::OnHelp)
  ON_COMMAND(ID_CONTEXT_HELP, CMDIFrameWnd::OnContextHelp)
  ON_COMMAND(ID_DEFAULT_HELP, CMDIFrameWnd::OnHelpFinder)
  ON_UPDATE_COMMAND_UI(ID_INDICATOR_TIME, OnUpdateTime)

END_MESSAGE_MAP()


When I right click to go to definition of OnHelpFinder, I got 2 results. One in CWinApp and the other one in CWnd. Both are in AFXWIN.h

afx_msg void OnHelpFinder();
afx_msg void OnHelpFinder();


But I don't see any code to pop up the help windows when user click on that button??


Thanks


Avatar of krbatge
krbatge

>>CMDIFrameWnd::OnHelpFinder

This means OnHelpFinder is a member of the CMDIFrameWnd class
Have a look in the CMDIFrameWnd.cpp file for the implmentation of OnHelpFinder and go from there.

Cheers!
ASKER CERTIFIED SOLUTION
Avatar of krbatge
krbatge

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial