<?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 : GetWindowText problem in CXTPContolComboBox</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : GetWindowText problem in CXTPContolComboBox]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 18:09:11 +0000</pubDate>
  <lastBuildDate>Fri, 11 May 2007 01:44:53 +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=7104</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[GetWindowText problem in CXTPContolComboBox : CXTPControlComboBox is not CWnd...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7104&amp;PID=22769&amp;title=getwindowtext-problem-in-cxtpcontolcombobox#22769</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7104<br /><strong>Posted:</strong> 11 May 2007 at 1:44am<br /><br />CXTPControlComboBox is not CWnd derived class...<DIV>&nbsp;</DIV><DIV>use SetEditText instead.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 11 May 2007 01:44:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7104&amp;PID=22769&amp;title=getwindowtext-problem-in-cxtpcontolcombobox#22769</guid>
  </item> 
  <item>
   <title><![CDATA[GetWindowText problem in CXTPContolComboBox : Hai, I have a class which is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7104&amp;PID=22756&amp;title=getwindowtext-problem-in-cxtpcontolcombobox#22756</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2969">Ashok</a><br /><strong>Subject:</strong> 7104<br /><strong>Posted:</strong> 10 May 2007 at 11:47am<br /><br /><P>Hai,</P><DIV>I have a class which is derived from CXTPControlComboBox, the problem is the GetWindowText method is giving error. ie., <FONT size=1><P>error C2660: 'GetWindowTextA' : function does not take 2 arguments</P></FONT></DIV><DIV>Actually it is looking for handle to the window ie., m_hWnd.</DIV><DIV>&nbsp;</DIV><DIV>How can I get the handle to the window.</DIV><DIV>&nbsp;</DIV><DIV>Please go thru the below code where GetWindowText gives problem,any solution.</DIV><DIV><FONT color=#0000ff size=2></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2>void</FONT><FONT size=2> CControlForamtFontSizeComboBox::FillSizeComboBox()</DIV><DIV><P>{</P><P>SZ szFaceName&#091;LF_FACESIZE+1&#093;;</P><P>BOOL bPrintDC;</P><P>bPrintDC = TRUE;</P><P>HDC hDC = GetPrinterDC(NULL);</P><P>JSASSERT(hDC,</FONT><FONT color=#800000 size=2>"Can't get printer dc"</FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!hDC) </P><P>{ </P><P>bPrintDC = FALSE;</P><P>HDC hDC = ::GetDC(NULL);</P><P>JSASSERT(hDC,</FONT><FONT color=#800000 size=2>"Can't get screen dc"</FONT><FONT size=2>);</P><P>}</P><P>ResetContent();</P><P>CUIntArray arSizeArray;</P><P></FONT><FONT color=#008000 size=2>GetWindowText(szFaceName,LF_FACESIZE+1); - Problem</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(!hDC || !szFaceName&#091;0&#093;)</P><P>{</P><P></FONT><FONT size=2>TRY</P><P>{</P><P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i = 0; i &lt; ELEMENTSOF(uNSizes); i++)</P><P>arSizeArray.SetAtGrow(i,uNSizes<em>);</P><P>}</P><P>AND_CATCH_ALL(e)</P><P>{</P><P>JSASSERT(0,</FONT><FONT color=#800000 size=2>"Unable to create size array"</FONT><FONT size=2>);</P><P>}</P><P>END_CATCH_ALL;</P><P>}</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>{</P><P>FILLSIZECOMBO fs;</P><P>fs.puArray = &amp;arSizeArray;;</P><P>fs.hPrinterDC = hDC;</P><P>EnumFontFamilies(hDC,szFaceName&#091;0&#093;,&amp;fs);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(!bPrintDC) </P><P>::ReleaseDC(NULL,hDC);</P><P></FONT><FONT color=#0000ff size=2>else</FONT><FONT size=2> </P><P>DeleteDC(hDC);</P><P></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i = 0; i &lt; arSizeArray.GetSize(); i++)</P><P>{</P><P>SZ szSize&#091;10&#093;;</P><P>_itot_s(arSizeArray<em>, szSize, 10, 10);</P><P>JSASSERT(CB_ERR == FindStringExact(-1,szSize),</FONT><FONT color=#800000 size=2>"Adding string twice"</FONT><FONT size=2>);</P><P>AddString(szSize);</P><P>}</P><P>}</P></FONT></DIV>]]>
   </description>
   <pubDate>Thu, 10 May 2007 11:47:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7104&amp;PID=22756&amp;title=getwindowtext-problem-in-cxtpcontolcombobox#22756</guid>
  </item> 
 </channel>
</rss>