<?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 : Resource abnormal paint</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Resource abnormal paint]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 12:15:53 +0000</pubDate>
  <lastBuildDate>Thu, 25 May 2006 13:43:47 +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=3251</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[Resource abnormal paint : Hi,  in 10.0/10.1 this line was...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13152&amp;title=resource-abnormal-paint#13152</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3251<br /><strong>Posted:</strong> 25 May 2006 at 1:43pm<br /><br /><P>Hi, </P><P>in 10.0/10.1 this line was removed already....</P>]]>
   </description>
   <pubDate>Thu, 25 May 2006 13:43:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13152&amp;title=resource-abnormal-paint#13152</guid>
  </item> 
  <item>
   <title><![CDATA[Resource abnormal paint :    oleg wrote:Hi, just remove...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13151&amp;title=resource-abnormal-paint#13151</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1732">A42_</a><br /><strong>Subject:</strong> 3251<br /><strong>Posted:</strong> 25 May 2006 at 1:34pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><p>Hi,</p><p>just remove this line... it is part of application, not toolkitpro...</p></td></tr></table><br><br>It <span style="font-weight: bold;">is</span> part of the sample codeyou provide showing how to use the toolkit. I can't imagine that I'mthe only one to encounter this problem. A better solution would be toadd something like the following to the CDockPaneWnd&lt;&gt; template:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>case WM_SETTINGCHANGE :<br>&nbsp;&nbsp;&nbsp; SetFont( XTPPaintManager()-&gt;GetRegularFont() );<br>&nbsp;&nbsp;&nbsp; return 0L;<br></pre></td></tr></table><br><br>]]>
   </description>
   <pubDate>Thu, 25 May 2006 13:34:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13151&amp;title=resource-abnormal-paint#13151</guid>
  </item> 
  <item>
   <title><![CDATA[Resource abnormal paint : Hi, just remove this line......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13146&amp;title=resource-abnormal-paint#13146</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3251<br /><strong>Posted:</strong> 25 May 2006 at 12:32pm<br /><br /><P>Hi,</P><P>just remove this line... it is part of application, not toolkitpro...</P>]]>
   </description>
   <pubDate>Thu, 25 May 2006 12:32:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13146&amp;title=resource-abnormal-paint#13146</guid>
  </item> 
  <item>
   <title><![CDATA[Resource abnormal paint :    oleg wrote:Hello, CXTTreeCtrl,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13136&amp;title=resource-abnormal-paint#13136</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1732">A42_</a><br /><strong>Subject:</strong> 3251<br /><strong>Posted:</strong> 24 May 2006 at 5:56pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><p>Hello,</p><p>CXTTreeCtrl, CXTListView classes not use PaintManager's font. You must set it.</p></td></tr></table><br><br>As it turns out, it's the CDockPaneWnd&lt;&gt; template that's responsible. From DockPaneWnd.h:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>case WM_CREATE:<br>{<br>&nbsp;&nbsp; if (BASE_CLASS::WindowProc(message, wParam, lParam) == -1)<br>&nbsp; &nbsp;&nbsp; &nbsp; return -1;<br><br>&nbsp;&nbsp; SetFont(XTPPaintManager()-&gt;GetRegularFont());<br><br>&nbsp;&nbsp; return 0;<br>}<br></pre></td></tr></table><br><br>]]>
   </description>
   <pubDate>Wed, 24 May 2006 17:56:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13136&amp;title=resource-abnormal-paint#13136</guid>
  </item> 
  <item>
   <title><![CDATA[Resource abnormal paint : Hello, CXTTreeCtrl, CXTListView...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13109&amp;title=resource-abnormal-paint#13109</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3251<br /><strong>Posted:</strong> 24 May 2006 at 9:18am<br /><br /><P>Hello,</P><P>CXTTreeCtrl, CXTListView classes not use PaintManager's font. You must set it.</P>]]>
   </description>
   <pubDate>Wed, 24 May 2006 09:18:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13109&amp;title=resource-abnormal-paint#13109</guid>
  </item> 
  <item>
   <title><![CDATA[Resource abnormal paint :    oleg wrote:Just don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13096&amp;title=resource-abnormal-paint#13096</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1732">A42_</a><br /><strong>Subject:</strong> 3251<br /><strong>Posted:</strong> 23 May 2006 at 5:12pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><p>Just don't use font from PaintManager. Creat variable for class, and create font.</p><p>it happened because font in PaintManager recreated if system settings are changed. So previously handle not valid anymore...</p><p>&nbsp;</p></td></tr></table><br><br>What about classes that already use PaintManager's fonts? LikeCXTTreeCtrl, CXTListView, etc? I'm deriving from those classes and notdoing anything to change their fonts.<br><br>]]>
   </description>
   <pubDate>Tue, 23 May 2006 17:12:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13096&amp;title=resource-abnormal-paint#13096</guid>
  </item> 
  <item>
   <title><![CDATA[Resource abnormal paint : Just don&amp;#039;t use font from...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13093&amp;title=resource-abnormal-paint#13093</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3251<br /><strong>Posted:</strong> 23 May 2006 at 4:52pm<br /><br /><P>Just don't use font from PaintManager. Creat variable for class, and create font.</P><P>it happened because font in PaintManager recreated if system settings are changed. So previously handle not valid anymore...</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 23 May 2006 16:52:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13093&amp;title=resource-abnormal-paint#13093</guid>
  </item> 
  <item>
   <title><![CDATA[Resource abnormal paint :    zhou_wz wrote:But later it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13092&amp;title=resource-abnormal-paint#13092</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1732">A42_</a><br /><strong>Subject:</strong> 3251<br /><strong>Posted:</strong> 23 May 2006 at 4:05pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by zhou_wz" alt="Originally posted by zhou_wz" style="vertical-align: text-bottom;" /> <strong>zhou_wz wrote:</strong><br /><br /><p>But later it becames like...</p></td></tr></table><br><br>I have a similar problem (Toolkit v9.8) where fonts in certain windowsget changed to the System font. This happens whenever the applicationreceives a WM_SETTINGCHANGE as well as under other (not yet identified)circumstances.<br><br>Additionally, I have a control derived from CXTTreeCtrl in the sameapp. When the WM_SETTINGCHANGE is processed its font is also messed up.I added a handler for WM_GETFONT like this:<br><br>&nbsp;&nbsp;&nbsp; HFONT hFont = (HFONT)Default();<br><br>&nbsp;&nbsp;&nbsp; LOGFONT lf;<br>&nbsp;&nbsp;&nbsp; ::GetObject( hFont, sizeof LOGFONT, &amp;lf );<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return (LRESULT)hFont;<br><br>Looking at the contents of the LOGFONT structure the HFONT returned isobviously bad: the lfHeight, lfWidth, lfEscapement, lfOrientation, andlfWeight members are all set to -858993460.<br><br>Also -- if I return NULL from this handler (to indicate that thecontrol should be drawn using the system font) the program crashes whenCXTTreeBase dereferences the NULL CFont pointer. <br><br>I also did another test here and verified that:<br><br>1) Before the WM_SETTINGCHANGE the font is the same as PaintManager's "Regular" font.<br><br>2) After the WM_SETTINGCHANGE the font is NOT the same as the "Regular" font -- it's the same as the OLD regular font.<br><br>In short, it looks like the "regular" font is getting destroyed and re-created but that the windows that use it are not updated.<br><br>]]>
   </description>
   <pubDate>Tue, 23 May 2006 16:05:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=13092&amp;title=resource-abnormal-paint#13092</guid>
  </item> 
  <item>
   <title><![CDATA[Resource abnormal paint : So I wonder who changed this......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=9736&amp;title=resource-abnormal-paint#9736</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=272">zhou_wz</a><br /><strong>Subject:</strong> 3251<br /><strong>Posted:</strong> 23 November 2005 at 3:16am<br /><br />So I wonder who changed this...]]>
   </description>
   <pubDate>Wed, 23 Nov 2005 03:16:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=9736&amp;title=resource-abnormal-paint#9736</guid>
  </item> 
  <item>
   <title><![CDATA[Resource abnormal paint : But the systemconfiguration never...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=9735&amp;title=resource-abnormal-paint#9735</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=272">zhou_wz</a><br /><strong>Subject:</strong> 3251<br /><strong>Posted:</strong> 23 November 2005 at 3:13am<br /><br /><P>But the system&nbsp;configuration never changed during the sample run.<BR>And another status is :The folderbox in treectrl(that is the +/- button) will shrink after long time running.</P>]]>
   </description>
   <pubDate>Wed, 23 Nov 2005 03:13:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3251&amp;PID=9735&amp;title=resource-abnormal-paint#9735</guid>
  </item> 
 </channel>
</rss>