<?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 : CXTPSyntaxEditAutoCompleteWnd problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : CXTPSyntaxEditAutoCompleteWnd problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 02:02:30 +0000</pubDate>
  <lastBuildDate>Thu, 09 Feb 2012 07:01:10 +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=19478</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[CXTPSyntaxEditAutoCompleteWnd problem : Dear all, I didn&amp;#039;t find...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19478&amp;PID=67586&amp;title=cxtpsyntaxeditautocompletewnd-problem#67586</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7327">fpailloux</a><br /><strong>Subject:</strong> 19478<br /><strong>Posted:</strong> 09 February 2012 at 7:01am<br /><br /><P>Dear all,</P><DIV>I didn't find how to modify the content of the <FONT color=#010001 size=2><FONT color=#010001 size=2>CXTPSyntaxEditAutoCompleteWnd's image list.</FONT></FONT></DIV><DIV><FONT color=#010001 size=2>In my opinion the only way to do&nbsp;that is to add a method to give an access to this list like this:</FONT></DIV><DIV><FONT color=#008000><FONT color=#008000><FONT size=1><FONT color=#008000><FONT color=#008000><FONT size=1></FONT></FONT></FONT></FONT></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#008000><FONT color=#008000><FONT size=1><FONT color=#008000><FONT color=#008000><FONT size=1>//---------------------------------------------------------------------</DIV><DIV><DIV><DIV></FONT></FONT></FONT>// Summary:</DIV></DIV><DIV></FONT></FONT></FONT><FONT color=#008000><FONT color=#008000><FONT size=1>// This member function is used to obtain the image list object.</FONT></FONT></FONT></DIV><DIV><FONT color=#008000><FONT color=#008000><FONT size=1>// Parameters:</FONT></FONT></FONT></DIV><DIV><FONT color=#008000><FONT color=#008000><FONT size=1>//---------------------------------------------------------------------</DIV><DIV></FONT></FONT></FONT><FONT size=1><FONT color=#010001><FONT color=#010001>CImageList</FONT></FONT>* <FONT color=#010001><FONT color=#010001>CXTPSyntaxEditAutoCompleteWnd</FONT></FONT>::<FONT color=#010001><FONT color=#010001>GetImageList</FONT></FONT>();</FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><FONT color=#010001 size=2></FONT></DIV><DIV><FONT color=#008000 size=2><FONT color=#008000 size=2><FONT size=1><EM><DIV>////////////////////////////////////////////////////////////////////////////</EM></FONT></DIV><DIV></FONT></FONT><FONT size=1><EM><FONT color=#010001><FONT color=#010001>AFX_INLINE</FONT></FONT> <FONT color=#010001><FONT color=#010001>CImageList</FONT></FONT>* <FONT color=#010001><FONT color=#010001>CXTPSyntaxEditAutoCompleteWnd</FONT></FONT>::<FONT color=#010001><FONT color=#010001>GetImageList</FONT></FONT>()</EM></FONT></DIV><DIV><FONT size=1><EM>{</EM></FONT></DIV><DIV><FONT size=1><EM><FONT color=#0000ff><FONT color=#0000ff>&nbsp;return</FONT></FONT> &amp;<FONT color=#010001><FONT color=#010001>m_ilACGlyphs</FONT></FONT>;</EM></FONT></DIV><DIV><FONT size=1><EM>}</EM></FONT></DIV><DIV><FONT size=1><EM></EM>&nbsp;</DIV><DIV></DIV><DIV></DIV><DIV><FONT size=2>Otherwise I suppect a little bug in the OnPaint mehod of this class.</FONT></DIV><DIV><FONT size=2>I think that the line <FONT color=#ff0000><EM>nData = m_nFirstDisplayedStr + nLine</EM><EM>;&nbsp;</EM><FONT color=#000000> must be moved&nbsp;before the line </FONT></FONT><FONT color=#ff0000>int nIcon = min(m_arrACDataFiltered.GetAt(nData)-&gt;m_nIcon, m_ilACGlyphs.GetImageCount</FONT><FONT color=#ff0000>() - 1); </FONT>if not,&nbsp;this object will not be able to display the right icon.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Best regards</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV></FONT></DIV>]]>
   </description>
   <pubDate>Thu, 09 Feb 2012 07:01:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19478&amp;PID=67586&amp;title=cxtpsyntaxeditautocompletewnd-problem#67586</guid>
  </item> 
 </channel>
</rss>