Click to See Complete Forum and Search --> : Pressing F1 with cursor in commented text


JasonD
April 12th, 2004, 02:30 PM
Hello,

When I press F1 with the cursor located in commented text I find it very annoying that the help window displays the 'Code and Text Editor' help screen. Is there any possible way to make this similar to pressing F1 on the same word in uncommented text?

Thanks for any advice,

darwen
April 12th, 2004, 07:07 PM
You'll have to override the PreTranslateMessage function of the window to trap the F1 call before it gets passed on.

Darwen.

JasonD
April 13th, 2004, 02:10 PM
Thanks for the reply.

So, I take it there is no easier way to change the way help works within the MSVC++ .NET IDE? I am even frustrated often when pressing F1 on normal C++ code, as the help function rarely brings me to the page for the function I wish to read about. I almost would prefer if it just opened a new window and did a search on Google for the term located on microsoft.com, which would find appropriate results in MSDN (usually as #1 or #2) and in knowledge base articles.