<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : General MFC problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : General MFC problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 09:19:53 +0000</pubDate>
  <lastBuildDate>Wed, 12 Sep 2007 10:58:46 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=7978</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[General MFC problem : Ever got the same problem here,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25746&amp;title=general-mfc-problem#25746</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=857">kylechen</a><br /><strong>Subject:</strong> 7978<br /><strong>Posted:</strong> 12 September 2007 at 10:58am<br /><br />Ever got the same problem here, thank you for reply. <img src="https://forum.codejock.com/smileys/smiley36.gif" border="0">]]>
   </description>
   <pubDate>Wed, 12 Sep 2007 10:58:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25746&amp;title=general-mfc-problem#25746</guid>
  </item> 
  <item>
   <title><![CDATA[General MFC problem : Ok the best method is to handle...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25744&amp;title=general-mfc-problem#25744</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2928">terrym</a><br /><strong>Subject:</strong> 7978<br /><strong>Posted:</strong> 12 September 2007 at 9:41am<br /><br />Ok the best method is to handle this in the WM_WINDOWPOSCHANGED message as this happens just after the window has appeared<DIV>&nbsp;</DIV><DIV>It works perfect now, cheers</DIV>]]>
   </description>
   <pubDate>Wed, 12 Sep 2007 09:41:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25744&amp;title=general-mfc-problem#25744</guid>
  </item> 
  <item>
   <title><![CDATA[General MFC problem : Found a better implementation,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25741&amp;title=general-mfc-problem#25741</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2928">terrym</a><br /><strong>Subject:</strong> 7978<br /><strong>Posted:</strong> 12 September 2007 at 7:46am<br /><br />Found a better implementation, is to start a timer, then in the timer function to have<DIV>&nbsp;</DIV><DIV>IsWindowVisble()</DIV><DIV>&nbsp;</DIV><DIV>and if not then exit timers</DIV><DIV>&nbsp;</DIV><DIV>Also playing with WM_WINDOWPOSCHANGED</DIV><DIV>&nbsp;</DIV><DIV>Cheers</DIV><DIV>Terry</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 12 Sep 2007 07:46:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25741&amp;title=general-mfc-problem#25741</guid>
  </item> 
  <item>
   <title><![CDATA[General MFC problem : Cheers, for that, as much better...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25732&amp;title=general-mfc-problem#25732</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2928">terrym</a><br /><strong>Subject:</strong> 7978<br /><strong>Posted:</strong> 12 September 2007 at 6:13am<br /><br />Cheers, for that, as much better than timer implementation<DIV></DIV>]]>
   </description>
   <pubDate>Wed, 12 Sep 2007 06:13:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25732&amp;title=general-mfc-problem#25732</guid>
  </item> 
  <item>
   <title><![CDATA[General MFC problem : Sorry, i make a mistake:...- I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25716&amp;title=general-mfc-problem#25716</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=976">pascal</a><br /><strong>Subject:</strong> 7978<br /><strong>Posted:</strong> 11 September 2007 at 5:40pm<br /><br />Sorry, i make a mistake:<br><pre>...<br>- I define a member BOOL m_bFirstActivation, initialized with TRUE<br>...<br><b><b>case WA_ACTIVE:<br>   if( m_bFirstActivation == TRUE )<br>   {<br>	OnFirstActivation();<br>	m_bFirstActivation = FALSE; <br>   } <br>   break;<br><br></b></b><img src="http://forum.codejock.com/smileys/smiley18.gif" border="0" align="absmiddle"> that is<br>Pascal<b><b><br></b></b></pre><br>]]>
   </description>
   <pubDate>Tue, 11 Sep 2007 17:40:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25716&amp;title=general-mfc-problem#25716</guid>
  </item> 
  <item>
   <title><![CDATA[General MFC problem : Hi,I use a workaround for this:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25715&amp;title=general-mfc-problem#25715</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=976">pascal</a><br /><strong>Subject:</strong> 7978<br /><strong>Posted:</strong> 11 September 2007 at 5:37pm<br /><br />Hi,<br>I use a workaround for this:<br>&nbsp;&nbsp;&nbsp; - I define a member BOOL m_bFirstActivation, initialized with FALSE<br>&nbsp;&nbsp;&nbsp; - catch the message WM_ACIVATE - ON_WM_ACTIVATE()<br>&nbsp;&nbsp;&nbsp; - toggle m_bFirstActivation in the message method, do the first initialization<br><br><pre><b>void CMainFrame::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized) <br>{<br>	CFrameWnd::OnActivate(nState, pWndOther, bMinimized);<br>	<br>	</b>// TODO: Add your message handler code here<b><br>	switch( nState )<br>	{<br></b><b><b>	case WA_CLICKACTIVE:</b></b><b>	case WA_ACTIVE:<br>		if( m_bFirstActivation == FALSE )<br>		{<br>		   	OnFirstActivation();<br>			m_bFirstActivation = FALSE; <br>		} <br>		break;<br>	case WA_INACTIVE:<br>		break;<br>	}	<br>}</b></pre>Hope that it will help you. There is may be a better way ... <br><br>BR<br>Pascal<br>]]>
   </description>
   <pubDate>Tue, 11 Sep 2007 17:37:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25715&amp;title=general-mfc-problem#25715</guid>
  </item> 
  <item>
   <title><![CDATA[General MFC problem : Anybody know what function is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25714&amp;title=general-mfc-problem#25714</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2928">terrym</a><br /><strong>Subject:</strong> 7978<br /><strong>Posted:</strong> 11 September 2007 at 4:19pm<br /><br />Anybody know what function is called after OnShowWindow()&nbsp;in MFC ???<DIV>&nbsp;</DIV><DIV>As I need to make sure a window is shown before showing a dialog, currently have in a timer, but this sometimes fails.</DIV><DIV>&nbsp;</DIV><DIV>Any help much appreciated</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 11 Sep 2007 16:19:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7978&amp;PID=25714&amp;title=general-mfc-problem#25714</guid>
  </item> 
 </channel>
</rss>