<?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 : some code not work for CHtmlView &amp; CHtmlEditView</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Shortcut Bar : some code not work for CHtmlView &amp; CHtmlEditView]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 00:46:29 +0000</pubDate>
  <lastBuildDate>Tue, 06 Mar 2007 12:08:20 +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=6549</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[some code not work for CHtmlView &amp; CHtmlEditView :   oleg wrote:Hi,  See CHtmlView::OnPaint...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6549&amp;PID=20948&amp;title=some-code-not-work-for-chtmlview-chtmleditview#20948</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2804">jchip</a><br /><strong>Subject:</strong> 6549<br /><strong>Posted:</strong> 06 March 2007 at 12:08pm<br /><br /><DIV><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 />Hi, </DIV><DIV>See CHtmlView::OnPaint method and CHtmlView ::OnDraw:</DIV><DIV>&nbsp;</DIV><DIV>void CHtmlView::OnDraw(CDC* /* pDC */)<BR>{<BR>&nbsp;// this class should never do its own drawing;<BR>&nbsp;// the browser control should handle everything</DIV><DIV>&nbsp;ASSERT(FALSE);<BR>}<BR></DIV><DIV><BR>void CHtmlView::OnPaint()<BR>{<BR>&nbsp;Default();<BR>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>so OnDraw never called for such views.</DIV></td></tr></table> <DIV></DIV><P>&nbsp;</P><DIV></DIV><P>&nbsp;</P><P>CHtmlView::OnDraw never be invoked.</P><DIV>Should I have to move the code in CHtmlView::OnPain()?</DIV><DIV>Some time looks not work perfectly.</DIV>]]>
   </description>
   <pubDate>Tue, 06 Mar 2007 12:08:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6549&amp;PID=20948&amp;title=some-code-not-work-for-chtmlview-chtmleditview#20948</guid>
  </item> 
  <item>
   <title><![CDATA[some code not work for CHtmlView &amp; CHtmlEditView :   jchip wrote:  void CShortcutBarView::OnDraw(CDC*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6549&amp;PID=20901&amp;title=some-code-not-work-for-chtmlview-chtmleditview#20901</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1801">rmercer</a><br /><strong>Subject:</strong> 6549<br /><strong>Posted:</strong> 05 March 2007 at 10:51am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jchip" alt="Originally posted by jchip" style="vertical-align: text-bottom;" /> <strong>jchip wrote:</strong><br /><br /><FONT color=#0000ff size=2> <P>void</FONT><FONT size=2> CShortcutBarView::OnDraw(CDC* pDC)</P><P>{</P><P>CShortcutBarDoc* pDoc = GetDocument();</P><P>ASSERT_VALID(pDoc);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (XTPPaintManager()-&gt;GetCurrentTheme() == xtpThemeOffice2003)</P><P>pDC-&gt;Draw3dRect(CXTPClientRect(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>), GetXtremeColor(XPCOLOR_FRAME), GetXtremeColor(XPCOLOR_FRAME));</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>pDC-&gt;Draw3dRect(CXTPClientRect(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>), GetXtremeColor(COLOR_3DSHADOW), GetXtremeColor(COLOR_3DHIGHLIGHT));</P><P>}</P><DIV></DIV><P>&nbsp;</P><P>It only works with CView, but not work for&nbsp;CHtmlView &amp; CHtmlEditView.</P><DIV></DIV><P>Please help.</P><DIV></DIV><P>&nbsp;</P><P></FONT>&nbsp;</P></td></tr></table> <DIV>If you're looking to draw a thin border around the view, why not just use CXTPOfficeBorder when you create the view?</DIV>]]>
   </description>
   <pubDate>Mon, 05 Mar 2007 10:51:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6549&amp;PID=20901&amp;title=some-code-not-work-for-chtmlview-chtmleditview#20901</guid>
  </item> 
  <item>
   <title><![CDATA[some code not work for CHtmlView &amp; CHtmlEditView : Hi, See CHtmlView::OnPaint method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6549&amp;PID=20869&amp;title=some-code-not-work-for-chtmlview-chtmleditview#20869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6549<br /><strong>Posted:</strong> 04 March 2007 at 4:04am<br /><br />Hi,<DIV>See CHtmlView::OnPaint method and CHtmlView ::OnDraw:</DIV><DIV>&nbsp;</DIV><DIV>void CHtmlView::OnDraw(CDC* /* pDC */)<BR>{<BR>&nbsp;// this class should never do its own drawing;<BR>&nbsp;// the browser control should handle everything</DIV><DIV>&nbsp;ASSERT(FALSE);<BR>}<BR></DIV><DIV><BR>void CHtmlView::OnPaint()<BR>{<BR>&nbsp;Default();<BR>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>so OnDraw never called for such views.</DIV>]]>
   </description>
   <pubDate>Sun, 04 Mar 2007 04:04:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6549&amp;PID=20869&amp;title=some-code-not-work-for-chtmlview-chtmleditview#20869</guid>
  </item> 
  <item>
   <title><![CDATA[some code not work for CHtmlView &amp; CHtmlEditView :  void CShortcutBarView::OnDraw(CDC*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6549&amp;PID=20852&amp;title=some-code-not-work-for-chtmlview-chtmleditview#20852</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2804">jchip</a><br /><strong>Subject:</strong> 6549<br /><strong>Posted:</strong> 02 March 2007 at 11:52am<br /><br /><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CShortcutBarView::OnDraw(CDC* pDC)</P><P>{</P><P>CShortcutBarDoc* pDoc = GetDocument();</P><P>ASSERT_VALID(pDoc);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (XTPPaintManager()-&gt;GetCurrentTheme() == xtpThemeOffice2003)</P><P>pDC-&gt;Draw3dRect(CXTPClientRect(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>), GetXtremeColor(XPCOLOR_FRAME), GetXtremeColor(XPCOLOR_FRAME));</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>pDC-&gt;Draw3dRect(CXTPClientRect(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>), GetXtremeColor(COLOR_3DSHADOW), GetXtremeColor(COLOR_3DHIGHLIGHT));</P><P>}</P><DIV></DIV><P>&nbsp;</P><P>It only works with CView, but not work for&nbsp;CHtmlView &amp; CHtmlEditView.</P><DIV></DIV><P>Please help.</P><DIV></DIV><P>&nbsp;</P><P></FONT>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 02 Mar 2007 11:52:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6549&amp;PID=20852&amp;title=some-code-not-work-for-chtmlview-chtmleditview#20852</guid>
  </item> 
 </channel>
</rss>