Garmin Fleet Management Controller
2.19.0
|
A CListBox that highlights list items matching a search string. More...
#include <CColoredListBox.h>
Public Member Functions | |
void | DrawItem (LPDRAWITEMSTRUCT aDrawItem) |
Draw the list item specified by aDrawItem. More... | |
CString | getSearchString () const |
Get the search string being used. More... | |
void | setSearchString (CString aSearchString) |
Set the search string to use. More... | |
Protected Attributes | |
BOOL | mHasSearchString |
If true, a search string was specified. More... | |
CString | mSearchString |
The search string to match. More... | |
A CListBox that highlights list items matching a search string.
Definition at line 19 of file CColoredListBox.h.
void CColoredListBox::DrawItem | ( | LPDRAWITEMSTRUCT | aDrawItem | ) |
Draw the list item specified by aDrawItem.
Draw the list item. If the item text contains the search string, draw the item as black text on a yellow background; if the search text is empty or not found, draw the item as black text on a white background. However, if the item is highlighted, use the system colors for a highlighted item.
aDrawItem | The structure representing the item to draw. |
Definition at line 23 of file CColoredListBox.cpp.
CString CColoredListBox::getSearchString | ( | ) | const |
Get the search string being used.
Definition at line 75 of file CColoredListBox.cpp.
References mSearchString.
void CColoredListBox::setSearchString | ( | CString | aSearchString | ) |
Set the search string to use.
aSearchString | The new search string |
Definition at line 84 of file CColoredListBox.cpp.
References mSearchString.
|
protected |
If true, a search string was specified.
Definition at line 39 of file CColoredListBox.h.
|
protected |
The search string to match.
Definition at line 36 of file CColoredListBox.h.
Referenced by getSearchString(), and setSearchString().