<?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 : HOWTO resize MarkupStatic / move other controls</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : HOWTO resize MarkupStatic / move other controls]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 20:50:52 +0000</pubDate>
  <lastBuildDate>Fri, 25 Feb 2011 08:51:03 +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=17953</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[HOWTO resize MarkupStatic / move other controls : Thanks Oleg!Now it works like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62982&amp;title=howto-resize-markupstatic-move-other-controls#62982</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 17953<br /><strong>Posted:</strong> 25 February 2011 at 8:51am<br /><br />Thanks Oleg!&nbsp;<img src="http://forum.codejock.com/smileys/smiley20.gif" border="0" alt="Thumbs Up" title="Thumbs Up" /><br><br>Now it works like a charm...<br><br>]]>
   </description>
   <pubDate>Fri, 25 Feb 2011 08:51:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62982&amp;title=howto-resize-markupstatic-move-other-controls#62982</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO resize MarkupStatic / move other controls : Hi,if you manually position controls,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62978&amp;title=howto-resize-markupstatic-move-other-controls#62978</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17953<br /><strong>Posted:</strong> 25 February 2011 at 8:31am<br /><br />Hi,<div>if you manually position controls, just don't use CXTPResize</div>]]>
   </description>
   <pubDate>Fri, 25 Feb 2011 08:31:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62978&amp;title=howto-resize-markupstatic-move-other-controls#62978</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO resize MarkupStatic / move other controls : Hi;I think it&amp;#039;s because of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62977&amp;title=howto-resize-markupstatic-move-other-controls#62977</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 17953<br /><strong>Posted:</strong> 25 February 2011 at 7:12am<br /><br />Hi;<br><br>I think it's because of using a CXTPResizeDialog. The CLIP* styles are all set as expected. When I remove my additional code from OnSize() the flicker goes away.<br>Perhaps Oleg has an idea how to integrate this resize into the CXTPResize() concept.<br><br>Nevertheless, thanks for your help.<br>]]>
   </description>
   <pubDate>Fri, 25 Feb 2011 07:12:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62977&amp;title=howto-resize-markupstatic-move-other-controls#62977</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO resize MarkupStatic / move other controls : You probable need to play with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62975&amp;title=howto-resize-markupstatic-move-other-controls#62975</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 17953<br /><strong>Posted:</strong> 25 February 2011 at 6:56am<br /><br />You probable need to play with the <FONT size=2>WS_CLIPCHILDREN and WS_CLIPSIBLINGS styles on your Dialog or Form and control.<DIV>&nbsp;</DIV><DIV>And if owner draw,&nbsp;then remember to return correctly in the <FONT size=2>OnEraseBkgnd(CDC* pDC) method.</FONT></DIV><DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV>-cpede</FONT>]]>
   </description>
   <pubDate>Fri, 25 Feb 2011 06:56:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62975&amp;title=howto-resize-markupstatic-move-other-controls#62975</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO resize MarkupStatic / move other controls : Hi;I included the suggested code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62974&amp;title=howto-resize-markupstatic-move-other-controls#62974</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 17953<br /><strong>Posted:</strong> 25 February 2011 at 6:40am<br /><br />Hi;<br><br>I included the suggested code into my OnSize() message handler. But now the report control flickers while resizing. What can I do to prevent this?<br><br>Here's the code of my OnSize handler:<br><table width="99%"><tr><td><pre class="BBcode">void CArticleParameterDlg::OnSize( UINT nType, int cx, int cy )<br>{<br>&nbsp;&nbsp;&nbsp; CXTPResizeDialog::OnSize(nType, cx, cy);<br><br>&nbsp;&nbsp;&nbsp; if (Static_.GetSafeHwnd() &amp;&amp; Static_.GetUIElement()) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CDC* pDC = Static_.GetDC();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pDC)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPWindowRect rc(&amp;Static_);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CSize sizeAvailable(rc.Width(), cy);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPMarkupDrawingContext dc(pDC-&gt;m_hDC);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Static_.GetUIElement()-&gt;Measure(&amp;dc,sizeAvailable);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CSize sizeDesired = Static_.GetUIElement()-&gt;GetDesiredSize();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Static_.ReleaseDC(pDC);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rc.bottom=rc.top+sizeAvailable.cy;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int top=rc.top;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ScreenToClient(&amp;rc);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Static_.MoveWindow(rc, FALSE);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (Report_.GetSafeHwnd()) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPWindowRect rcReport(&amp;Report_);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rcReport.top=top+sizeDesired.cy+10;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ScreenToClient(&amp;rcReport);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Report_.MoveWindow(rcReport, FALSE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>}<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Fri, 25 Feb 2011 06:40:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62974&amp;title=howto-resize-markupstatic-move-other-controls#62974</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO resize MarkupStatic / move other controls : Hi;Thanks, that&amp;#039;s what I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62973&amp;title=howto-resize-markupstatic-move-other-controls#62973</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 17953<br /><strong>Posted:</strong> 25 February 2011 at 6:01am<br /><br />Hi;<br><br>Thanks, that's what I was looking for!<br>]]>
   </description>
   <pubDate>Fri, 25 Feb 2011 06:01:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62973&amp;title=howto-resize-markupstatic-move-other-controls#62973</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO resize MarkupStatic / move other controls : I use code like this:  if (m_ctrl.GetSafeHwnd()){...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62972&amp;title=howto-resize-markupstatic-move-other-controls#62972</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 17953<br /><strong>Posted:</strong> 25 February 2011 at 5:58am<br /><br /><DIV>I use code like this:</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono">&nbsp;if (m_ctrl.GetSafeHwnd())<BR>&nbsp;{<BR>&nbsp;&nbsp; if (m_ctrl.GetUIElement())<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp; CDC* pDC = m_ctrl.GetDC();<BR>&nbsp;&nbsp;&nbsp;&nbsp; if (pDC)<BR>&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CSize sizeAvailable(rc.Width(),rc.Height());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPMarkupDrawingContext dc(pDC-&gt;m_hDC);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_ctrl.GetUIElement()-&gt;Measure(&amp;dc,sizeAvailable);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CSize sizeDesired = m_ctrl.GetUIElement()-&gt;GetDesiredSize();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_ctrl.ReleaseDC(pDC);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><FONT face="Courier New, Courier, mono">m_nHeight = sizeDesired.cy;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp; }<BR>&nbsp;&nbsp; m_ctrl.SetWindowPos(NULL,0,rc.Height()-m_nHeight,rc.Width(),m_nHeight,SWP_NOZORDER);<BR>&nbsp;}</FONT><BR></DIV><DIV>I don't know if the code is optimal, but it works <img src="http://forum.codejock.com/smileys/smiley1.gif" height="17" width="17" border="0" alt="Smile" title="Smile" /></DIV><DIV>&nbsp;</DIV><DIV>-cpede</DIV>]]>
   </description>
   <pubDate>Fri, 25 Feb 2011 05:58:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62972&amp;title=howto-resize-markupstatic-move-other-controls#62972</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO resize MarkupStatic / move other controls :  But how can I read the size...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62971&amp;title=howto-resize-markupstatic-move-other-controls#62971</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 17953<br /><strong>Posted:</strong> 25 February 2011 at 5:52am<br /><br />But how can I read the size of the Markup content. That's what I was looking for...]]>
   </description>
   <pubDate>Fri, 25 Feb 2011 05:52:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62971&amp;title=howto-resize-markupstatic-move-other-controls#62971</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO resize MarkupStatic / move other controls : Well, if you just places controls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62970&amp;title=howto-resize-markupstatic-move-other-controls#62970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 17953<br /><strong>Posted:</strong> 25 February 2011 at 5:43am<br /><br />Well, if you just places controls on a Dialog or Form there is no build-in automatic moving and resizing of the individual controls, and Dialog and Form sizes etc.<DIV>&nbsp;</DIV><DIV>If you want to have control, you can read the size of the Markup context object and then manually move your Report control up or down accordingly.</DIV><DIV>&nbsp;</DIV><DIV>That is at least the way I do it.</DIV><DIV>&nbsp;</DIV><DIV>-cpede</DIV>]]>
   </description>
   <pubDate>Fri, 25 Feb 2011 05:43:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62970&amp;title=howto-resize-markupstatic-move-other-controls#62970</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO resize MarkupStatic / move other controls : Hello;No solution for this? I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62965&amp;title=howto-resize-markupstatic-move-other-controls#62965</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 17953<br /><strong>Posted:</strong> 25 February 2011 at 3:05am<br /><br />Hello;<br><br>No solution for this? I can't believe it.<br>]]>
   </description>
   <pubDate>Fri, 25 Feb 2011 03:05:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17953&amp;PID=62965&amp;title=howto-resize-markupstatic-move-other-controls#62965</guid>
  </item> 
 </channel>
</rss>