<?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 : DrawTextEx : is not a member of &quot;CXTPPaintManager&quot;</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : DrawTextEx : is not a member of &quot;CXTPPaintManager&quot;]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 19:00:57 +0000</pubDate>
  <lastBuildDate>Fri, 08 Dec 2006 10:55:41 +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=5725</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[DrawTextEx : is not a member of &quot;CXTPPaintManager&quot; : Hello, Yes, sorry was changed....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5725&amp;PID=18016&amp;title=drawtextex-is-not-a-member-of-cxtppaintmanager#18016</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5725<br /><strong>Posted:</strong> 08 December 2006 at 10:55am<br /><br />Hello,<DIV>Yes, sorry was changed. use DrawControlText method:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>CSize CControlStatic::GetSize(CDC* pDC)<BR>{<BR>&nbsp;// This function is used to determine the size<BR>&nbsp;// of the bounding rectangle of the text.&nbsp; The<BR>&nbsp;// function returns the size of the rectangle in<BR>&nbsp;// a CSize object.</DIV><DIV>&nbsp;// Determine if the toolbar is docked horizontally or vertically.<BR>&nbsp;BOOL bVert = GetParent()-&gt;GetPosition() == xtpBarRight || GetParent()-&gt;GetPosition() == xtpBarLeft;</DIV><DIV>&nbsp;// Instantiate an empty CRect object to hold the<BR>&nbsp;// size of the bounding rectangle of the text.<BR>&nbsp;CXTPEmptyRect rcText;</DIV><DIV>&nbsp;// Function declaration for the DrawTextEx function:<BR>&nbsp;//&nbsp; CSize DrawTextEx(<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDC*&nbsp;&nbsp;&nbsp; pDC,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A pointer to the current device context.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CString str,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A CString object that contains the text to draw.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CRect&nbsp;&nbsp; rcText,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A CRect object that is used to hold the size of the bounding rectangle of the text.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp; bDraw,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If TRUE, then the text is drawn.&nbsp; If FALSE, then the function returns the size of the bounding rectangle of the text.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp; bVert,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRUE if the toolbar is docked in a vertical position.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp; bCentered,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRUE if the text is drawn centered.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp; bTriangled,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If TRUE, then an arrow is drawn at the end of the text.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp; bEmbosssed = FALSE, TRUE to draw the text embossed.<BR>&nbsp;//&nbsp; );</DIV><DIV>&nbsp;// Do not draw the text, just get the size of the bounding rectangle of the text.<BR>&nbsp;CSize sz = GetPaintManager()-&gt;DrawControlText(pDC, this, &amp;rcText, FALSE, bVert, FALSE, FALSE);</DIV><DIV>&nbsp;// If the toolbar is docked in a vertical position,<BR>&nbsp;// then the minimum width of the bounding rectangle is 22.<BR>&nbsp;// The height of the bounding rectangle is the length of the text.<BR>&nbsp;if (bVert)<BR>&nbsp;&nbsp;return CSize(max(22, sz.cx), sz.cy);</DIV><DIV>&nbsp;// If the toolbar is drawn in a horizontal position, then<BR>&nbsp;// the length of the bounding rectangle is the length of the text.<BR>&nbsp;// The height of the bounding rectangle is a minimum of 22.<BR>&nbsp;return CSize(sz.cx, max(22, sz.cy));<BR>}</DIV><DIV>void CControlStatic::Draw(CDC* pDC)<BR>{<BR>&nbsp;// Determine if the toolbar is docked horizontally or vertically.<BR>&nbsp;BOOL bVert = GetParent()-&gt;GetPosition() == xtpBarRight || GetParent()-&gt;GetPosition() == xtpBarLeft;</DIV><DIV>&nbsp;// Get the bounding rectangle of the control.<BR>&nbsp;CRect rcText = GetRect();</DIV><DIV>&nbsp;// Function declaration for DrawControlEntry:<BR>&nbsp;// DrawControlEntry(<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDC*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pDC,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pointer to a valid device context<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CRect&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rc,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rectangle to draw.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bEnabled,&nbsp;&nbsp;&nbsp; TRUE if the control is enabled.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bSelected,&nbsp;&nbsp; TRUE if the control is selected.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bPressed,&nbsp;&nbsp;&nbsp; TRUE if the control is pushed.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bChecked,&nbsp;&nbsp;&nbsp; TRUE if the control is checked.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bPopuped,&nbsp;&nbsp;&nbsp; TRUE if the control is popuped.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XTPBarPosition&nbsp; barPosition, Parent's bar position.<BR>&nbsp;//&nbsp; );<BR>&nbsp;// This method is called to fill the control's face.<BR>&nbsp;pDC-&gt;SetTextColor(GetPaintManager()-&gt;GetRectangleTextColor(FALSE, FALSE, GetEnabled(), FALSE, FALSE, GetParent()-&gt;GetType(), GetParent()-&gt;GetPosition()));</DIV><DIV>&nbsp;// Function declaration for the DrawTextEx function:<BR>&nbsp;//&nbsp; CSize DrawTextEx(<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDC*&nbsp;&nbsp;&nbsp; pDC,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A pointer to the current device context.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CString str,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A CString object that contains the text to draw.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CRect&nbsp;&nbsp; rcText,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A CRect object that is used to hold the size of the bounding rectangle of the text.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp; bDraw,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If TRUE, then the text is drawn.&nbsp; If FALSE, then the function returns the size of the bounding rectangle of the text.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp; bVert,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRUE if the toolbar is docked in a vertical position.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp; bCentered,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRUE if the text is drawn centered.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp; bTriangled,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If TRUE, then an arrow is drawn at the end of the text.<BR>&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BOOL&nbsp;&nbsp;&nbsp; bEmbosssed = FALSE, TRUE to draw the text embossed.<BR>&nbsp;//&nbsp; );<BR>&nbsp;// GetEnabled() returns TRUE if the control is enabled; otherwise FALSE.<BR>&nbsp;GetPaintManager()-&gt;DrawControlText(pDC, this, &amp;rcText, TRUE, bVert, TRUE, FALSE);<BR>}</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 08 Dec 2006 10:55:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5725&amp;PID=18016&amp;title=drawtextex-is-not-a-member-of-cxtppaintmanager#18016</guid>
  </item> 
  <item>
   <title><![CDATA[DrawTextEx : is not a member of &quot;CXTPPaintManager&quot; : Hi  When we execute our code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5725&amp;PID=18004&amp;title=drawtextex-is-not-a-member-of-cxtppaintmanager#18004</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2550">shanmuganathan</a><br /><strong>Subject:</strong> 5725<br /><strong>Posted:</strong> 08 December 2006 at 5:42am<br /><br />Hi<DIV>&nbsp;</DIV><DIV>When we execute our code using latest XtremeToolkit (10.3.1) we face the following error.</DIV><DIV>&nbsp;</DIV><DIV>D:\Sample_Workspace_toTest_Xtreme\Sample workspace\MainFrm.cpp(159) : error C2039: 'DrawTextExA' : is not a member of 'CXTPPaintManager'<BR></DIV><DIV>D:\Sample_Workspace_toTest_Xtreme\Sample workspace\MainFrm.cpp(207) : error C2039: 'DrawTextExA' : is not a member of 'CXTPPaintManager'<BR></DIV><DIV>Guide us what to do.</DIV>]]>
   </description>
   <pubDate>Fri, 08 Dec 2006 05:42:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5725&amp;PID=18004&amp;title=drawtextex-is-not-a-member-of-cxtppaintmanager#18004</guid>
  </item> 
 </channel>
</rss>