CXTPSyntaxEditAutoCompleteWnd problem |
Post Reply |
Author | |
fpailloux
Newbie Joined: 09 February 2012 Location: FRANCE Status: Offline Points: 1 |
Post Options
Thanks(0)
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |