Print Page | Close Window

CXTPSyntaxEditAutoCompleteWnd problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=19478
Printed Date: 04 December 2024 at 1:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPSyntaxEditAutoCompleteWnd problem
Posted By: fpailloux
Subject: CXTPSyntaxEditAutoCompleteWnd problem
Date Posted: 09 February 2012 at 7:01am

Dear all,

I didn't find how to modify the content of the CXTPSyntaxEditAutoCompleteWnd's image list.
In my opinion the only way to do that is to add a method to give an access to this list like this:
 
//---------------------------------------------------------------------
// Summary:
// This member function is used to obtain the image list object.
// Parameters:
//---------------------------------------------------------------------
CImageList* CXTPSyntaxEditAutoCompleteWnd::GetImageList();
 
////////////////////////////////////////////////////////////////////////////
AFX_INLINE CImageList* CXTPSyntaxEditAutoCompleteWnd::GetImageList()
{
 return &m_ilACGlyphs;
}
 
Otherwise I suppect a little bug in the OnPaint mehod of this class.
I think that the line nData = m_nFirstDisplayedStr + nLine must be moved before the line int nIcon = min(m_arrACDataFiltered.GetAt(nData)->m_nIcon, m_ilACGlyphs.GetImageCount() - 1); if not, this object will not be able to display the right icon.
 
Best regards
 


-------------
Frédéric



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net