#pragma once #include "stdafx.h" // CFileListBox class CFileListBox : public CListBox { DECLARE_DYNAMIC(CFileListBox) public: CFileListBox(); virtual ~CFileListBox(); protected: DECLARE_MESSAGE_MAP() virtual void PreSubclassWindow(); virtual BOOL PreCreateWindow(CREATESTRUCT& cs); public: afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct); virtual void DrawItem(LPDRAWITEMSTRUCT /*lpDrawItemStruct*/); virtual void MeasureItem(LPMEASUREITEMSTRUCT /*lpMeasureItemStruct*/); };