#if !defined(__KTINSTLINELISTBOX_H__) #define __KTINSTLINELISTBOX_H__ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class KTInstLineListBox : public CListBox { DECLARE_DYNCREATE(KTInstLineListBox); public: KTInstLineListBox(); virtual ~KTInstLineListBox(); //{{AFX_VIRTUAL(KTInstLineListBox) public: virtual BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID); virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct); virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); //}}AFX_VIRTUAL protected: //{{AFX_MSG(KTInstLineListBox) //}}AFX_MSG DECLARE_MESSAGE_MAP() public: int AddString(LPCTSTR lpszLayer, UINT nImage = 0); void SetImageList(CImageList* pImageList); protected: CImageList* m_pImageList; }; //{{AFX_INSERT_LOCATION}} #endif // !defined(__KTINSTLINELISTBOX_H__)