<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Visual C++ Tips &#187; OnHelpInfo()</title>
	<atom:link href="http://weseetips.com/tag/onhelpinfo/feed/" rel="self" type="application/rss+xml" />
	<link>http://weseetips.com</link>
	<description>Gold mine of Visual C++ tricks!</description>
	<lastBuildDate>Thu, 11 Mar 2010 09:09:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to handle F1 or help in application?</title>
		<link>http://weseetips.com/2008/08/17/how-to-handle-f1-or-help-in-application/</link>
		<comments>http://weseetips.com/2008/08/17/how-to-handle-f1-or-help-in-application/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 18:40:19 +0000</pubDate>
		<dc:creator>Jijo Raj</dc:creator>
				<category><![CDATA[Codeproject]]></category>
		<category><![CDATA[MFC]]></category>
		<category><![CDATA[Windows APIs]]></category>
		<category><![CDATA[application help]]></category>
		<category><![CDATA[F1]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[how to handle application help]]></category>
		<category><![CDATA[mayday]]></category>
		<category><![CDATA[OnHelpInfo()]]></category>
		<category><![CDATA[ON_WM_HELPINFO()]]></category>
		<category><![CDATA[WM_HELP]]></category>

		<guid isPermaLink="false">http://weseetips.wordpress.com/?p=378</guid>
		<description><![CDATA[Help is inevitable part of every windows application. The first function key &#8211; F1 itself is assigned as help in every application. Well, how to handle the user&#8217;s &#8220;Mayday&#8221; call in application? Basically you&#8217;ve to handle the WM_HELP message. When you press F1 the WM_HELP message will be posted to your window. To handle this [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" src="http://weseetips.files.wordpress.com/2008/03/icon_description.jpg?w=166" alt="" width="166" height="32" /><br />
<span style="color:#0000ff;">Help is inevitable part </span>of every <span style="color:#0000ff;">windows application</span>. The first function key &#8211; <span style="color:#0000ff;">F1</span> itself is <span style="color:#0000ff;">assigned as help</span> in every application. Well, <span style="color:#0000ff;">how to handle</span> the user&#8217;s <span style="color:#0000ff;">&#8220;Mayday&#8221; call</span> in application?</p>
<p><img class="alignnone size-full wp-image-382" src="http://siteground205.com/~weseetip/wp-content/uploads/2008/08/help.jpg" alt="" width="320" height="178" /></p>
<p><img class="alignnone size-medium wp-image-12" src="http://weseetips.files.wordpress.com/2008/03/icon_howcanidoit.jpg?w=220" alt="" width="220" height="32" /><br />
Basically you&#8217;ve to handle the <span style="color:#0000ff;">WM_HELP</span> message. When you press<span style="color:#0000ff;"> F1</span> the <span style="color:#0000ff;">WM_HELP</span> message <span style="color:#0000ff;">will be posted to your window.</span> To handle this via <span style="color:#0000ff;">MFC</span>, Add <span style="color:#0000ff;">ON_WM_HELPINFO()</span> to message map <span style="color:#0000ff;">and implement</span> <span style="color:#0000ff;">OnHelpInfo()</span> in your dialog. Have a look at the following code snippet.</p>
<pre>// Add ON_WM_HELPINFO() to your message map.
BEGIN_MESSAGE_MAP(CYourDialog, CDialog)
   ...
   ON_WM_HELPINFO()
END_MESSAGE_MAP()

// Add this function to your dialog.
BOOL CYourDialog::OnHelpInfo( HELPINFO* HelpInfo)
{
   // Handle your help request here.
   return TRUE;
}</pre>
<p><img class="alignnone size-medium wp-image-18" src="http://weseetips.files.wordpress.com/2008/03/icon_note.jpg?w=94" alt="" width="94" height="32" /><br />
Well, the <span style="color:#0000ff;">only help i used to use is MSDN</span>. If I accidentally launch Windows help, I&#8217;ll kill it immediately by using taskmgr. I don&#8217;t know why I hate it. <img src='http://weseetips.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-51" src="http://weseetips.files.wordpress.com/2008/03/beginnerseries.jpg?w=215" alt="" width="215" height="32" /><br />
Targeted Audience &#8211; Beginners.</p>
]]></content:encoded>
			<wfw:commentRss>http://weseetips.com/2008/08/17/how-to-handle-f1-or-help-in-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

