<?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 : ZOrder problem and windows effects</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : ZOrder problem and windows effects]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 06:11:21 +0000</pubDate>
  <lastBuildDate>Thu, 12 Mar 2009 10:06:53 +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=13647</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[ZOrder problem and windows effects : Hi, Thanks for your answer. The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13647&amp;PID=46580&amp;title=zorder-problem-and-windows-effects#46580</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5041">fciccardini</a><br /><strong>Subject:</strong> 13647<br /><strong>Posted:</strong> 12 March 2009 at 10:06am<br /><br /><P>Hi, <BR>Thanks for your answer. The project was compiled using version 11.2. <BR>I downloaded version 13.0 and recompiled the project and the effect is the same.</P><P>The problem is when I close the third form, the contents of the other application brings to front and then back.</P>]]>
   </description>
   <pubDate>Thu, 12 Mar 2009 10:06:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13647&amp;PID=46580&amp;title=zorder-problem-and-windows-effects#46580</guid>
  </item> 
  <item>
   <title><![CDATA[ZOrder problem and windows effects :    Hi Oleg,i&amp;#039;ve almost...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13647&amp;PID=46565&amp;title=zorder-problem-and-windows-effects#46565</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5048">neversaid</a><br /><strong>Subject:</strong> 13647<br /><strong>Posted:</strong> 12 March 2009 at 7:26am<br /><br />Hi Oleg,<br><br>i've almost a similar problem in my Application.<br>I just bought the newest Codejock Version last week, and here the problem occurs to.<br><br>Language: MS Visual FoxPro 9 (All SP's installed)<br><br>Description:<br>We're using CommandBars / Ribbon with EnableFrameTheme enabled.<br>After setting everything and configuring the whole Ribbon we Attach the Current HWND to the commandbar.<br>On a Form displayed ("In Screen") in Foxpro, everything works perfect, but when we use "As Top Level Form" the Ribbon and Titlebar / Statusbar<br>disappears.<br>With Spy++ we discovered that the Commandbars perhaps lie on a wrong "ZOrder" caus when we use "bring to front" in Spy++ on the HWNDs of the Bars (Statusbar, Ribbonbar, Toolbar) they appear correctly.<br>A Strange thing is, that the left and right borders where rendered correctly in the "Office Style" but all Controls (Ribbon, Statusbar, Titlebar) where on the right place (you see the empty spaces) but won't be displayed.<br>We need a fix for this.<br>I've attached a screenshot.<br>If you need further assistance please let me know.<br><br>Thanks<br>Bernhard<br><br><a href="uploads/20090312_072556_errorocx_vfp_ri.zip" target="_blank">uploads/20090312_072556_errorocx_vfp_ri.zip</a><br><br>Edit:<br>This Problem looks like mine:<br>https://forum.codejock.com/forum_posts.asp?TID=13630<br>But if i set SetMDIClient to the HWND of my VFP Form the Application Crashes<br><br><br>Edit2 / Workaround:<br>With some SPY++ investigations i found out, that the VFP Form layes on the top and the Ribbonbar behind the Form (invisible).<br>A small hack in the Refresh Method of the form helped me (its better to do an thisform.refresh() also in the activate).<br>Don't call this form the Paint or Draw method - you'll get a bad flicker on your controlbars!<br><br>DECLARE INTEGER SetWindowPos IN user32;<br>&nbsp;&nbsp;&nbsp; INTEGER hwnd,;<br>&nbsp;&nbsp;&nbsp; INTEGER hWndInsertAfter,;<br>&nbsp;&nbsp;&nbsp; INTEGER x,;<br>&nbsp;&nbsp;&nbsp; INTEGER y,;<br>&nbsp;&nbsp;&nbsp; INTEGER cx,;<br>&nbsp;&nbsp;&nbsp; INTEGER cy,;<br>&nbsp;&nbsp;&nbsp; INTEGER wFlags<br><br>DECLARE INTEGER FindWindowEx IN user32;<br>&nbsp; INTEGER hwndParent,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ;<br>&nbsp; INTEGER hwndChildAfter,&nbsp;&nbsp; ;<br>&nbsp; STRING lpszClassName,&nbsp;&nbsp;&nbsp; ;<br>&nbsp; STRING lpszWindowCaption <br><br>** this.oRibbon = CommandBars ActiveX<br><br>IF Vartype(this.oRibbon) = "O" THEN<br>&nbsp; ** If you have an Statusbar set it topmost<br>&nbsp; SetWindowPos(this.oRibbon.StatusBar.hWnd,0,0,0,0,0,0)<br>ENDIF<br><br>lnHWnd = FindWindowEx(thisform.hwnd,0,"XTPDockBar","xtpBarTop")<br>IF lnHWND &gt; 0 THEN<br>&nbsp; ** Now set the formborder and controllbars to front / top<br>&nbsp;&nbsp; SetWindowPos(lnhWnd,0,0,0,0,0,0)<br>ENDIF<br><br>** At the and the bar must be redraw (only this works fully)<br>IF Vartype(thisform.oRibbon) = "O" THEN<br>&nbsp; thisform.oRibbon.ActiveMenuBar.RecalcLayout<br>ENDIF<br><br><br>But it would be nice to see an bugfix of this problem or an correction of my started code.<br>Further i think this will be also work with my disappearing CommandBarsFramed but i'll check out and report.<br><br>]]>
   </description>
   <pubDate>Thu, 12 Mar 2009 07:26:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13647&amp;PID=46565&amp;title=zorder-problem-and-windows-effects#46565</guid>
  </item> 
  <item>
   <title><![CDATA[ZOrder problem and windows effects : Hi,  You have too old version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13647&amp;PID=46541&amp;title=zorder-problem-and-windows-effects#46541</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13647<br /><strong>Posted:</strong> 12 March 2009 at 2:05am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You have too old version - I believe it was fixed already - try last evaluation version.</DIV>]]>
   </description>
   <pubDate>Thu, 12 Mar 2009 02:05:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13647&amp;PID=46541&amp;title=zorder-problem-and-windows-effects#46541</guid>
  </item> 
  <item>
   <title><![CDATA[ZOrder problem and windows effects : I have an application with 3 forms,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13647&amp;PID=46523&amp;title=zorder-problem-and-windows-effects#46523</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5041">fciccardini</a><br /><strong>Subject:</strong> 13647<br /><strong>Posted:</strong> 11 March 2009 at 9:48am<br /><br /><P>I have an application with 3 forms, all using the Ribbon Control.<BR>The form1 show modal the second form and the second show modal the third form.</P><P>In order to reproduce the problem I run the application, open the forms and then I open other application (ie browser, better maximized). <BR>Then change to my app without minimize the browser, and close the third form.<BR>The effect is that the browser brings to front for a few seconds and then its go back.</P><P>If someone knows how to void this effect, bring me the solution please.<BR>Thanks </P><DIV>This is the sample:</DIV><DIV><a href="https://forum.codejock.com/uploads/20090311_094607_Sample.zip" target="_blank">uploads/20090311_094607_Sample.zip</A></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 11 Mar 2009 09:48:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13647&amp;PID=46523&amp;title=zorder-problem-and-windows-effects#46523</guid>
  </item> 
 </channel>
</rss>