Files
envi-code/SourceCode/Code2026/PIDLineCmd/KTInstLineListBox.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

40 lines
852 B
C++

#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__)