<?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 : MDI Minimize to tray issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : MDI Minimize to tray issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 23:14:11 +0000</pubDate>
  <lastBuildDate>Sun, 03 May 2009 22:02:10 +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=14204</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[MDI Minimize to tray issue : Maybe try the QueryUnload event...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14204&amp;PID=48583&amp;title=mdi-minimize-to-tray-issue#48583</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14204<br /><strong>Posted:</strong> 03 May 2009 at 10:02pm<br /><br />Maybe try the QueryUnload event instead (test the UnloadMode parameter for <b>vbFormControlMenu</b> and then run your minimize code)?<br><br>]]>
   </description>
   <pubDate>Sun, 03 May 2009 22:02:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14204&amp;PID=48583&amp;title=mdi-minimize-to-tray-issue#48583</guid>
  </item> 
  <item>
   <title><![CDATA[MDI Minimize to tray issue : Hello folks,  When I try to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14204&amp;PID=48577&amp;title=mdi-minimize-to-tray-issue#48577</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4166">JvdH</a><br /><strong>Subject:</strong> 14204<br /><strong>Posted:</strong> 03 May 2009 at 3:55pm<br /><br />Hello folks,<DIV>&nbsp;</DIV><DIV>When I try to minimize a ribbon by clicking the the close button on the parent form it automatically closes the subforms for some reason.</DIV><DIV>&nbsp;</DIV><DIV>The unload code on the parent is:</DIV><DIV>Public Sub MDIForm_Unload(Cancel As Integer)<BR>On Error Resume Next</DIV><DIV>Dim sMainCloseButtonFunction As Integer<BR>&nbsp;&nbsp;&nbsp; sMainCloseButtonFunction = ReadINIFile(App.Path &amp; "\Preferences.ini", "Settings", "MainCloseButtonFunction", "")</DIV><DIV>&nbsp;&nbsp;&nbsp; If sMainCloseButtonFunction = 1 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cancel = True</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call MinimizeToTray<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Sub<BR>&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mWidth = Me.Width<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mHeight = Me.Height<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SaveSetting App.Title, "Settings", "Width", mWidth<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SaveSetting App.Title, "Settings", "Height", mHeight</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call SetWindowLong(Me.hwnd, GWL_WNDPROC, OldWindowProc) 'unload resize form</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unload Me: End<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>The minimze code:</DIV><DIV>Public Sub MinimizeToTray()<BR>&nbsp;&nbsp;&nbsp; If Not Minimized Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TI.MinimizeToTray Me.hwnd<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Minimized = True<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBars.RecalcLayout<BR>&nbsp;&nbsp;&nbsp; Else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TI.MaximizeFromTray Me.hwnd<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Minimized = False<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBars.RecalcLayout<BR>&nbsp;&nbsp;&nbsp; End If<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>And when I call the MinimizeToTray function via a Button it works fine.</DIV><DIV>Is this a bug or am I missing a piece of code or?</DIV>]]>
   </description>
   <pubDate>Sun, 03 May 2009 15:55:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14204&amp;PID=48577&amp;title=mdi-minimize-to-tray-issue#48577</guid>
  </item> 
 </channel>
</rss>