<?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 : Override CXTPReportSection::Draw</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Override CXTPReportSection::Draw]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 03:50:36 +0000</pubDate>
  <lastBuildDate>Wed, 22 Apr 2015 07:28: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=22580</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[Override CXTPReportSection::Draw : Thanks. Now it is working. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22580&amp;PID=73324&amp;title=override-cxtpreportsectiondraw#73324</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2550">shanmuganathan</a><br /><strong>Subject:</strong> 22580<br /><strong>Posted:</strong> 22 April 2015 at 7:28am<br /><br />Thanks. Now it is working.]]>
   </description>
   <pubDate>Wed, 22 Apr 2015 07:28:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22580&amp;PID=73324&amp;title=override-cxtpreportsectiondraw#73324</guid>
  </item> 
  <item>
   <title><![CDATA[Override CXTPReportSection::Draw : ----------------------------...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22580&amp;PID=73321&amp;title=override-cxtpreportsectiondraw#73321</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22580<br /><strong>Posted:</strong> 22 April 2015 at 6:51am<br /><br />---------------------------- &#091;header file&#093; -------------------------------------<br><table width="99%"><tr><td><pre class="BBcode">class CMyReportSection : public CXTPReportSection<br>{<br>public:<br>	CMyReportSection (CXTPReportControl *pControl, XTPReportRowType rowType) <br>	: CXTPReportSection(pControl, rowType)<br>	{<br>	}<br><br>	~CMyReportSection ()<br>	{<br>	}<br><br>	void Draw(CDC *pDC);<br>};<br></pre></td></tr></table><br>-------------------------------- &#091;source file&#093; -------------------------------<br><table width="99%"><tr><td><pre class="BBcode">#include "&#091;header file&#093;"<br>#include "ReportControl\XTPReportBorder.h" <br><br>void CMyReportSection::Draw(CDC *pDC)<br>{<br>	CRect rcSection(m_rcSection);<br><br>	// Draw border<br>	if (NULL != m_pBorder)<br>	{<br>		m_pBorder-&gt;SetBorderColor(m_pControl-&gt;GetPaintManager()-&gt;GetGridColor());<br>		m_pBorder-&gt;Draw(pDC, rcSection);<br><br>		// Deduct margin, border and padding from section rectangle<br>		rcSection = CXTPReportBorder::DeflateRect(rcSection, m_pBorder);<br>	}<br>}</pre></td></tr></table>]]>
   </description>
   <pubDate>Wed, 22 Apr 2015 06:51:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22580&amp;PID=73321&amp;title=override-cxtpreportsectiondraw#73321</guid>
  </item> 
  <item>
   <title><![CDATA[Override CXTPReportSection::Draw : Yes. i have #include &amp;#034;XTPReportBorder.h&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22580&amp;PID=73320&amp;title=override-cxtpreportsectiondraw#73320</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2550">shanmuganathan</a><br /><strong>Subject:</strong> 22580<br /><strong>Posted:</strong> 22 April 2015 at 6:36am<br /><br />Yes. i have <span style="line-height: 16.7999992370605px; : rgb248, 248, 252;"><font color="#0000ff">#include "XTPReportBorder.h" </font>in my code.</span>]]>
   </description>
   <pubDate>Wed, 22 Apr 2015 06:36:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22580&amp;PID=73320&amp;title=override-cxtpreportsectiondraw#73320</guid>
  </item> 
  <item>
   <title><![CDATA[Override CXTPReportSection::Draw : Hello, did you try #include &amp;#034;XTPReportBorder.h&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22580&amp;PID=73319&amp;title=override-cxtpreportsectiondraw#73319</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22580<br /><strong>Posted:</strong> 22 April 2015 at 6:16am<br /><br />Hello, did you try #include "XTPReportBorder.h" before CMyReportSection declaration ?]]>
   </description>
   <pubDate>Wed, 22 Apr 2015 06:16:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22580&amp;PID=73319&amp;title=override-cxtpreportsectiondraw#73319</guid>
  </item> 
  <item>
   <title><![CDATA[Override CXTPReportSection::Draw : I have inherited a class CMyReportSection...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22580&amp;PID=73315&amp;title=override-cxtpreportsectiondraw#73315</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2550">shanmuganathan</a><br /><strong>Subject:</strong> 22580<br /><strong>Posted:</strong> 22 April 2015 at 2:36am<br /><br />I have inherited a class CMyReportSection from CXTPReportSection and override<div>the method Draw(). But i am getting the following error if i use the variable m_pBorder.</div><div><br></div><div>error C2027: use of undefined type 'CXTPReportBorder'</div><div><br></div><div><span style="line-height: 16.7999992370605px;">How to fix this error ?</span></div><div><br></div><div><span style="line-height: 16.7999992370605px; : rgb240, 241, 245;"><table width="99%"><tr><td><pre class="BBcode"></span></div><div>class CMyReportSection : public CXTPReportSection</div><div>{</div><div><br></div><div>CMyReportSection (CXTPReportControl *pControl, XTPReportRowType rowType)&nbsp;</div><div>: CXTPReportSection(pControl, rowType)</div><div>{</div><div>}</div><div><br></div><div>~CMyReportSection ()</div><div>{</div><div>}</div><div><br></div><div>void&nbsp;<span style="line-height: 16.7999992370605px;">CMyReportSection&nbsp;</span>::Draw(CDC *pDC)</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CRect rcSection(m_rcSection);</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>// Draw border</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>if (NULL != m_pBorder)</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>{</div><div><span ="Apple-tab-span" style="white-space:pre">		</span><font color="#ff0000"><b>m_pBorder-&gt;SetBorderColor(m_pControl-&gt;GetPaintManager()-&gt;GetGridColor());</b></font></div><div><font color="#ff0000"><b><span ="Apple-tab-span" style="white-space:pre">		</span>m_pBorder-&gt;Draw(pDC, rcSection);</b></font></div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">		</span>// Deduct margin, border and padding from section rectangle</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>rcSection = CXTPReportBorder::DeflateRect(rcSection, m_pBorder);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>...</div><div>}</div><div><br></div><div>}</div><div><span style="line-height: 16.7999992370605px; : rgb240, 241, 245;"></pre></td></tr></table></span></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 22 Apr 2015 02:36:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22580&amp;PID=73315&amp;title=override-cxtpreportsectiondraw#73315</guid>
  </item> 
 </channel>
</rss>