<?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 : Tray Icon and restoring to maximized position</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Tray Icon and restoring to maximized position]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:26:04 +0000</pubDate>
  <lastBuildDate>Thu, 16 Jul 2009 13:48:21 +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=14758</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[Tray Icon and restoring to maximized position : Sorry for posting my question...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14758&amp;PID=51017&amp;title=tray-icon-and-restoring-to-maximized-position#51017</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4354">mitcheljh</a><br /><strong>Subject:</strong> 14758<br /><strong>Posted:</strong> 16 July 2009 at 1:48pm<br /><br />Sorry for posting my question prematurely.<br /><br />I just discovered the problem.<br />I needed to derive a new class from CXTTrayIcon, and override CreateMinimizedWnd() to do nothing but return true, as in the demo application.<br /><br />After doing this, the application window is now minimizing from, and maximizing to, a fully maximized window properly.<br /><br />Thanks.]]>
   </description>
   <pubDate>Thu, 16 Jul 2009 13:48:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14758&amp;PID=51017&amp;title=tray-icon-and-restoring-to-maximized-position#51017</guid>
  </item> 
  <item>
   <title><![CDATA[Tray Icon and restoring to maximized position : I&amp;#039;m encountering an odd situation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14758&amp;PID=51013&amp;title=tray-icon-and-restoring-to-maximized-position#51013</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4354">mitcheljh</a><br /><strong>Subject:</strong> 14758<br /><strong>Posted:</strong> 16 July 2009 at 11:41am<br /><br />I'm encountering an odd situation with my application with the tray icon.  It seems that the when I restore the app from the tray icon which was minimized from a maximized position, the application is restored to the window position BEFORE the application was maximized, not the maximized position.  I can never restore the application (from the tray icon) to a maximized state.<br /><br />The Demo application TrayIconDemo doesn't have this problem, so it's something unique to my application.<br /><br />I've traced through CXTTrayIcon::MinimizeToTray() and CXTTrayIcon::MaximizeFromTray().<br />In MinimizeToTray(), the rectangle rectFrom, returned from GetWindowRect() has the correct dimensions of my maximized application.<br />But, when restoring from the tray icon, in MaximizeFromTray(), GetWindowRect() returns a rectangle of the dimensions that my application was in BEFORE I maximized it, not the maximized dimensions.  <br /><br />It seems like it could be an issue that windows is not saving the dimensions of my maximized window.  But when I minimize and maximize without using the tray icon, this problem doesn't occur.<br /><br />I checked my application and I can't find anywhere that I'm manually setting the windows position that would cause this issue.<br /><br />Thanks]]>
   </description>
   <pubDate>Thu, 16 Jul 2009 11:41:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14758&amp;PID=51013&amp;title=tray-icon-and-restoring-to-maximized-position#51013</guid>
  </item> 
 </channel>
</rss>