BCGSoft Professional Editor for MFC

Detailed Description

This class is used with CBCGPEditCtrl

The CBCGPIntelliSenseLB class is a part of IntelliSense support implemented by the edit control. It represents the ownerdraw Windows listbox control filled by the appropriate IntelliSense data. An object of this class is created in conjunction with CBCGPIntelliSenseWnd, that is a popup window automatically created and displayed by the edit control when you call (or called automatically by the framework) CBCGPEditCtrl::InvokeIntelliSense.

If you derive your own class from CBCGPIntelliSenseLB, you should override CBCGPEditCtrl::InvokeIntelliSense and call CBCGPIntelliSenseWnd::Create with the last parameter set to the pointer to runtime class of custom listbox.

To associate an image list with the items in the list box you need to call CBCGPEditCtrl::SetIntelliSenseImgList.

To set a font for the list box you need to call CBCGPEditCtrl::SetIntelliSenseLBFont.

When CBCGPIntelliSenseWnd::Create creates the list box, it iterates the IntelliSense data passed as a parameter, fills the list box and associates indexes in the image list with each item.

Inherits CBCGPBaseIntelliSenseLB.

Public Member Functions

 SelectCurrentWordTakes the current word from the parent edit control and selects it in the list box.

Static Public Attributes

 m_bComparenoCaseSpecifies whether the list box is case sensitive or not.