Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - CXTPSyntaxEditAutoCompleteWnd problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPSyntaxEditAutoCompleteWnd problem

 Post Reply Post Reply
Author
Message
fpailloux View Drop Down
Newbie
Newbie


Joined: 09 February 2012
Location: FRANCE
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote fpailloux Quote  Post ReplyReply Direct Link To This Post Topic: CXTPSyntaxEditAutoCompleteWnd problem
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.