Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2005

Tip: Looking for answers? Try searching our database.

Overriding WinHelp is not working in .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Devender Khari - 14 Mar 2005 12:00 GMT
Hi Friends,

I have an application which was developed with Visual C++ 6.0 and MFC. In
the application, the CWinApp::WinHelp method was overridden to support
context sensitive help (F1 help). After upgrading to Visual Studio .Net
2003, the help links are not working any longer. The overridden WinHelp
method in my CWinApp derived class no longer gets called when I press F1.

On some investigation within the framework code, I found that another
function CWinApp::WinHelpInternal gets called. If I just call this method
from my overridden WinHelp method then things work fine. Is this a change
made to the CWinApp class in the latest
version of MFC and is it documented somewhere? I could not find any
reference to it on the MSDN site or in the online docs.
Will the workaround I have done has any impact which I'm not aware of?

Thanks for your help.

Regards,
Devender...
ismailp - 15 Mar 2005 00:31 GMT
It's been years last time I used MFC. So, I am quite off from MFC case.

The WM_HELP window message is sent to the main window of the
application. If you can handle this message, you can either call your
method with proper parameters, or, display help from within the WM_HELP
handler. Besides, I guess MFC does this on your behalf - it handles
this message and calls WinHelpInternal method.

Ismail

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.