SECListBar Class
class SECListBar: public SECBar
SECListBar is a specialized SECBar that contains the knowledge of how to insert and remove items from its associated CWnd. The CWnd will always be a SECShortcutListCtrl or a SECShortcutListCtrl derived class. This class adds simple one liner functions around the most commonly used list control functions, such as InsertItem, HitTest, and SetItemData.
Defined in: listbar.h
Comments
See the DEMO sample in the \SAMPLES\TOOLKIT\STANDARD\TABS\LISTBAR directory for a demonstration of the SECListBar class.
See Also
Class Members
Public Members
Constructors/Destructors
Constructs the SECListBar object.
SECListBar( const SECListBar& src )
Constructs an SECListBar object from another SECListBar object.
virtual ~SECListBar()
Destroys the SECListBar object.
Operators
const SECListBar& operator=( const SECListBar& src )
Overloaded assignment operator for SECListBar objects.
Attributes
SECShortcutListCtrl* GetListCtrl()
Returns the associated SECShortcutListCtrl object.
void SetNotifyWnd( CWnd* pWnd )
Sets the notification window.
CImageList* GetImageList(int nImageList) const
Returns the image list associated with this object.
CImageList* SetImageList(CImageList* pImageList, int nImageListType)
Associates an image list with the list bar object.
int GetItemCount() const
Returns a count of the items contained in the list bar.
BOOL SetItemData(int nItem, SEC_DWORD dwData)
Sets the data for an item in the list bar.
SEC_DWORD GetItemData(int nItem) const
Gets the data for an item in the list bar
Public Operations
int AddItem( LPCTSTR lpszItem, int nImage )
Appends an item to the list bar from the associated image list.
int InsertItem(int nItem, LPCTSTR lpszItem, int nImage)
Inserts an item into the list bar at a specific location.
BOOL DeleteItem(int nItem)
Removes an item from the list bar.
BOOL DeleteAllItems()
Deletes all the items in the list bar.
int HitTest(LV_HITTESTINFO* pHitTestInfo) const
todo Add a description
int HitTest(CPoint pt, UINT* pFlags = NULL) const
Checks to see if the point is on the location as specified by the pFlags parameter.