<?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 : SHAutoComplete in CXTPC&#111;ntrolCombox</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : SHAutoComplete in CXTPC&#111;ntrolCombox]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 14:37:05 +0000</pubDate>
  <lastBuildDate>Fri, 05 Nov 2004 00:39:13 +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=1363</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[SHAutoComplete in CXTPC&#111;ntrolCombox : wait for oleg help. thanks. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1363&amp;PID=3842&amp;title=shautocomplete-in-cxtpcontrolcombox#3842</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=574">blueseaing</a><br /><strong>Subject:</strong> 1363<br /><strong>Posted:</strong> 05 November 2004 at 12:39am<br /><br /><P>wait for oleg help. thanks.</P>]]>
   </description>
   <pubDate>Fri, 05 Nov 2004 00:39:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1363&amp;PID=3842&amp;title=shautocomplete-in-cxtpcontrolcombox#3842</guid>
  </item> 
  <item>
   <title><![CDATA[SHAutoComplete in CXTPC&#111;ntrolCombox : Tanks a lot to oleg for your help,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1363&amp;PID=3832&amp;title=shautocomplete-in-cxtpcontrolcombox#3832</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=574">blueseaing</a><br /><strong>Subject:</strong> 1363<br /><strong>Posted:</strong> 04 November 2004 at 3:02am<br /><br /><P>Tanks a lot to oleg for your help, and I will trouble you again.</P><P>I used your method and the SHAutoComplete will work but I find two problems again , that's&nbsp; </P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; when I try to drag the autocomplete hook window and the hook window will disappear and only remain the white rectangle ,&nbsp; the rectanage can zoom ,&nbsp; after release the mouse ,all disappear.</P><P>&nbsp;&nbsp;&nbsp;&nbsp; 2 when the autocomplete list appear the mouse wheel can't use but the&nbsp;common windows </P><P>combox can use.</P><P>&nbsp;&nbsp;&nbsp; I change the customtheme example and I post the source code.&nbsp; and I replace the find combox. Thanks.&nbsp; </P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A href="https://forum.codejock.com/uploads/blueseaing/2004-11-04_030207_CustomThemes.rar" target="_blank">2004-11-04_030207_CustomThemes.rar</A></P><span style="font-size:10px"><br /><br />Edited by blueseaing</span>]]>
   </description>
   <pubDate>Thu, 04 Nov 2004 03:02:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1363&amp;PID=3832&amp;title=shautocomplete-in-cxtpcontrolcombox#3832</guid>
  </item> 
  <item>
   <title><![CDATA[SHAutoComplete in CXTPC&#111;ntrolCombox : after you call CreateObject()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1363&amp;PID=3816&amp;title=shautocomplete-in-cxtpcontrolcombox#3816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1363<br /><strong>Posted:</strong> 03 November 2004 at 3:49am<br /><br /><P>after you call CreateObject() edit of Combo Box is NULL, so pEdit == NULL (see debugger).</P><P>you need to create custom combo:</P><P>&nbsp;</P><P>class CComboBoxURL : public CXTPControlComboBox&nbsp; <BR>{<BR>&nbsp;DECLARE_XTP_CONTROL(CComboBoxURL);<BR>public:<BR>&nbsp;virtual void SetRect(CRect rcControl);<BR>};<BR></P><P>IMPLEMENT_XTP_CONTROL(CComboBoxURL, CXTPControlComboBox)<BR></P><P>void CComboBoxURL::SetRect(CRect rcControl)<BR>{<BR>&nbsp;BOOL bCreated = m_pEdit &amp;&amp; m_pEdit-&gt;GetSafeHwnd();</P><P>&nbsp;CXTPControlComboBox::SetRect(rcControl);</P><P>&nbsp;if (!bCreated &amp;&amp; m_pEdit &amp;&amp; m_pEdit-&gt;GetSafeHwnd())<BR>&nbsp;{<BR> &nbsp;&nbsp;::SHAutoComplete(m_pEdit-&gt;GetSafeHwnd(),SHACF _DEFAULT);&nbsp;&nbsp;</P><P>}<BR>}</P><P>&nbsp;</P><P>oh.. as i see you already use CControlComboBoxAddress. so add SetRect method.</P>]]>
   </description>
   <pubDate>Wed, 03 Nov 2004 03:49:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1363&amp;PID=3816&amp;title=shautocomplete-in-cxtpcontrolcombox#3816</guid>
  </item> 
  <item>
   <title><![CDATA[SHAutoComplete in CXTPC&#111;ntrolCombox : Please help me! I use the ::SHAutoComplete...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1363&amp;PID=3812&amp;title=shautocomplete-in-cxtpcontrolcombox#3812</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=574">blueseaing</a><br /><strong>Subject:</strong> 1363<br /><strong>Posted:</strong> 02 November 2004 at 11:15pm<br /><br /><P>Please help me! I use the ::SHAutoComplete in the CMainFrame::OnCreateControl&nbsp; to a CXTPControlCombox, but it failed ,and the&nbsp; ::SHAutoComplete&nbsp; return not S_OK, how can i solve the problem?Does the CXTPControlCombox not support the ::SHAutoComplete?&nbsp; &nbsp;Thanks a lot.<BR></P><P>int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)<BR>{<BR>&nbsp; if (lpCreateControl-&gt;nID == ID_GOTO_BARURL &amp;&amp; pToolBar-&gt;GetBarID() == IDR_TOOLBAR_ADDR)<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp; CXTPControlComboBox* pComboUrl =  (CXTPControlComboBox*)CControlComboBoxAddress::CreateObject( );<BR>&nbsp;&nbsp;&nbsp;&nbsp; lpCreateControl-&gt;pControl = pComboUrl;</P><P>&nbsp;&nbsp;&nbsp;&nbsp; //use ::SHAutoComplete<BR>&nbsp;&nbsp;&nbsp;&nbsp; CEdit*&nbsp;pEdit=pComboUrl-&gt;GetEditCtrl();<BR>&nbsp;&nbsp;&nbsp;&nbsp; if(pEdit)&nbsp; ::SHAutoComplete(pEdit-&gt;GetSafeHwnd(),SHACF_DEFAULT); </P><P>&nbsp;&nbsp;&nbsp;&nbsp; return TRUE;&nbsp;<BR>&nbsp; }<BR>}</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 02 Nov 2004 23:15:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1363&amp;PID=3812&amp;title=shautocomplete-in-cxtpcontrolcombox#3812</guid>
  </item> 
 </channel>
</rss>