<?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 : Dialog not Resizing</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Dialog not Resizing]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 05:31:35 +0000</pubDate>
  <lastBuildDate>Sat, 02 Sep 2006 06:20:09 +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=4254</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[Dialog not Resizing : Hi Oleg ,  When i try to Add...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4254&amp;PID=15427&amp;title=dialog-not-resizing#15427</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1726">Raj.krishnan</a><br /><strong>Subject:</strong> 4254<br /><strong>Posted:</strong> 02 September 2006 at 6:20am<br /><br />Hi Oleg ,<DIV>&nbsp;</DIV><DIV>When i try to Add a Rich Edit Control to the dialog while Resizing lots of flickering happens . We are painting the dialog with Gradient fill in WM_PAINT message so while Resizing dialog is InValidating </DIV><DIV>&nbsp;</DIV><DIV>We tried certain methods like OnEraseBkGnd message to avoid flickering .Can you please help me to sort out the issue of flickering .</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 02 Sep 2006 06:20:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4254&amp;PID=15427&amp;title=dialog-not-resizing#15427</guid>
  </item> 
  <item>
   <title><![CDATA[Dialog not Resizing : Hi, you don&amp;#039;t receive WM_LBUTTONDOWN...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4254&amp;PID=13074&amp;title=dialog-not-resizing#13074</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4254<br /><strong>Posted:</strong> 22 May 2006 at 2:34pm<br /><br /><P>Hi,</P><P>you don't receive WM_LBUTTONDOWN for "top" border because you cantch WM_NCHITTEST and return HTCAPTION instead of HTCLIENT for top border...</P>]]>
   </description>
   <pubDate>Mon, 22 May 2006 14:34:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4254&amp;PID=13074&amp;title=dialog-not-resizing#13074</guid>
  </item> 
  <item>
   <title><![CDATA[Dialog not Resizing : Thanks oleg for your speedy reply But...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4254&amp;PID=13072&amp;title=dialog-not-resizing#13072</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1735">Shajeer</a><br /><strong>Subject:</strong> 4254<br /><strong>Posted:</strong> 22 May 2006 at 6:29am<br /><br /><P>Thanks oleg for your speedy reply</P><P>But we are not able to resize on the top ( It is not recieving WM_LBUTTONDOWN when clicked on the top ) Please advice</P><P>Can you also advice how to bring the resize gripper on the right bottom most corner.</P><P>&nbsp;</P><P>our code</P><P>//////////////</P><P>BOOL CToolDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) <BR>{<BR>&nbsp;CPoint pt;<BR>&nbsp;GetCursorPos(&amp;pt);</P><P>&nbsp;CRect rc;<BR>&nbsp;GetWindowRect(&amp;rc);</P><P>&nbsp;if ( pt.x &gt; rc.right - 4 )<BR>&nbsp;{<BR>&nbsp;&nbsp;SetCursor( LoadCursor(0, IDC_SIZEWE) );<BR>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}&nbsp;&nbsp; </P><P>&nbsp;if ( pt.x == rc.left )<BR>&nbsp;{<BR>&nbsp;&nbsp;SetCursor( LoadCursor(0, IDC_SIZEWE) );<BR>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}</P><P>&nbsp;if ( pt.y == rc.top&nbsp; )<BR>&nbsp;{<BR>&nbsp;&nbsp;SetCursor( LoadCursor(0, IDC_SIZENS) );<BR>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}</P><P>&nbsp;if ( pt.y &gt; rc.bottom -4&nbsp; )<BR>&nbsp;{<BR>&nbsp;&nbsp;SetCursor( LoadCursor(0, IDC_SIZENWSE) );<BR>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}</P><P>&nbsp;return CDialog::OnSetCursor(pWnd, nHitTest, message);<BR>}</P><P>void CToolDlg::OnLButtonDown(UINT nFlags, CPoint point) <BR>{</P><P>&nbsp;CPoint pt;<BR>&nbsp;GetCursorPos(&amp;pt);<BR>&nbsp;CRect rc;<BR>&nbsp;GetWindowRect(&amp;rc);</P><P>&nbsp;if ( pt.x &gt; rc.right - 4 )<BR>&nbsp;{<BR>&nbsp;&nbsp;SendMessage(WM_SYSCOMMAND, SC_SIZE + (HTRIGHT - HTSIZEFIRST + 1), <BR>&nbsp;&nbsp;&nbsp;MAKELPARAM(pt.x, pt.y));&nbsp;&nbsp;<BR>&nbsp;&nbsp;return;<BR>&nbsp;}</P><P>&nbsp;if ( pt.x == rc.left )<BR>&nbsp;{<BR>&nbsp;&nbsp;SendMessage(WM_SYSCOMMAND, SC_SIZE + (HTLEFT - HTSIZEFIRST + 1), <BR>&nbsp;&nbsp;&nbsp;MAKELPARAM(pt.x, pt.y));<BR>&nbsp;&nbsp;return ;<BR>&nbsp;}</P><P>&nbsp;if ( pt.y == rc.top&nbsp; )<BR>&nbsp;{&nbsp;&nbsp; <BR>&nbsp;&nbsp;SendMessage(WM_SYSCOMMAND, SC_SIZE + ( HTTOP - HTSIZELAST + 1 ), <BR>&nbsp;&nbsp;&nbsp;MAKELPARAM(pt.x, pt.y));<BR>&nbsp;&nbsp;return ;<BR>&nbsp;}</P><P>&nbsp;if ( pt.y &gt; rc.bottom -4&nbsp; )<BR>&nbsp;{<BR>&nbsp;&nbsp;SendMessage(WM_SYSCOMMAND, SC_SIZE + (HTBOTTOMRIGHT - HTSIZEFIRST + 1), <BR>&nbsp;&nbsp;&nbsp;MAKELPARAM(pt.x, pt.y));<BR>&nbsp;&nbsp;return ;<BR>&nbsp;}</P><P>Thanks </P>]]>
   </description>
   <pubDate>Mon, 22 May 2006 06:29:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4254&amp;PID=13072&amp;title=dialog-not-resizing#13072</guid>
  </item> 
  <item>
   <title><![CDATA[Dialog not Resizing : Some hints: 1. You totally removed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4254&amp;PID=13069&amp;title=dialog-not-resizing#13069</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4254<br /><strong>Posted:</strong> 21 May 2006 at 9:35am<br /><br /><P>Some hints:<BR></P><P>1. You totally removed all borders:</P><P>ModifyStyle(WS_BORDER|WS_DLGFRAME|WS_THICKFRAME,0);</P><P>So window has no border/has no nonclient area.</P><P>2. Because your dialog have no nonclient area/borders</P><P>You must manually catch WM_SETCURSOR to change resize cursor and WM_LBUTTONDOWN to send WM_SYSCOMMAND to resize client</P><P>sample:</P><P>BOOL CToolDlg::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) <BR>{<BR>&nbsp;CPoint pt;<BR>&nbsp;GetCursorPos(&amp;pt);<BR>&nbsp;CRect rc;<BR>&nbsp;GetWindowRect(&amp;rc);<BR>&nbsp;if (pt.x &gt; rc.right - 4)<BR>&nbsp;{<BR>&nbsp;&nbsp;SetCursor(LoadCursor(0, IDC_SIZEWE));<BR>&nbsp;&nbsp;return TRUE;<BR>&nbsp;}<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;return CDialogSampleDlgBase::OnSetCursor(pWnd, nHitTest, message);<BR>}</P><P>void CToolDlg::OnLButtonDown(UINT nFlags, CPoint point) <BR>{<BR>&nbsp;CPoint pt;<BR>&nbsp;GetCursorPos(&amp;pt);<BR>&nbsp;CRect rc;<BR>&nbsp;GetWindowRect(&amp;rc);<BR>&nbsp;if (pt.x &gt; rc.right - 4)<BR>&nbsp;{<BR>&nbsp;&nbsp;SendMessage(WM_SYSCOMMAND, SC_SIZE + (HTRIGHT - HTSIZEFIRST + 1), <BR>&nbsp;&nbsp;&nbsp;MAKELPARAM(pt.x, pt.y));</P><P>&nbsp;&nbsp;return;<BR>&nbsp;}<BR>&nbsp;<BR>&nbsp;CDialogSampleDlgBase::OnLButtonDown(nFlags, point);<BR>}<BR></P>]]>
   </description>
   <pubDate>Sun, 21 May 2006 09:35:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4254&amp;PID=13069&amp;title=dialog-not-resizing#13069</guid>
  </item> 
  <item>
   <title><![CDATA[Dialog not Resizing : We have developed a dialog based...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4254&amp;PID=13064&amp;title=dialog-not-resizing#13064</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1726">Raj.krishnan</a><br /><strong>Subject:</strong> 4254<br /><strong>Posted:</strong> 20 May 2006 at 4:04pm<br /><br /><FONT face=Arial size=2>We have developed a dialog based application in VC++ 6.0. </FONT><DIV><FONT face=Arial size=2>We have integrated XTreme toolkit 9.81 into the application.The problem we </FONT></DIV><DIV><FONT face=Arial size=2>now face is that we are not able to resize the dialog eventhough we have derived </FONT></DIV><DIV><FONT face=Arial size=2>the dialog from CXTResize and the property of the dialog is also set </FONT></DIV><DIV><FONT face=Arial size=2>to <strong>resizing.</strong></FONT></DIV><DIV><strong><FONT face=Arial size=2></FONT></strong>&nbsp;</DIV><DIV><A href="https://forum.codejock.com/uploads/Rajkrishnan/2006-05-20_160426_Resizing_Modes.zip" target="_blank">2006-05-20_160426_Resizing_Modes.zip</A></DIV><DIV><strong><FONT face=Arial size=2>Resizing needs to happen in maximize mode and compact mode( Refer image attached&nbsp;).</FONT></strong></DIV><DIV><strong><FONT face=Arial size=2></FONT></strong>&nbsp;</DIV><DIV><A href="https://forum.codejock.com/uploads/Rajkrishnan/2006-05-20_160406_Source.zip" target="_blank">2006-05-20_160406_Source.zip</A></DIV><DIV><FONT face=Arial size=2>A sample application and the source code for the same is attached.Please follow the </FONT><FONT face=Arial size=2>steps mentioned below.</FONT></DIV><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><DIV><FONT face=Arial size=2>Can you please help us to resolve this issue ASAP . </FONT></DIV><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><DIV><FONT face=Arial size=2><strong><U>Things to be followed while using the Source code:</U></strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></DIV><DIV><strong><U><FONT face=Arial size=2></FONT></U></strong>&nbsp;</DIV><DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>1) Unzip the workspace<BR>2) Make sure that you are compiling in the debug mode ( donot do it in &nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; release mode - since we deleted few resources it will not work in release mode)<BR>3) Give your executable path in the settings<BR>&nbsp;&nbsp;&nbsp; ( Projects -&gt; Settings -&gt; Debug Tab )<BR>4) After executing, a dialog will be displayed in which we are not able to <BR>&nbsp;&nbsp;&nbsp; resize, both in maximized mode as well as compactible mode.<BR></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Sat, 20 May 2006 16:04:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4254&amp;PID=13064&amp;title=dialog-not-resizing#13064</guid>
  </item> 
 </channel>
</rss>