#ifndef __CUSTOMHIGHTLISTCTRL_H__
#define __CUSTOMHIGHTLISTCTRL_H__
#include <set>
class wxCustomHeightListCtrl : public wxScrolledWindow
{
public:
wxCustomHeightListCtrl(wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxHSCROLL | wxVSCROLL, const wxString& name = _T("scrolledWindow"));
void SetLineHeight(int height);
void SetLineCount(int count);
virtual void SetFocus();
void ClearSelection();
std::set<int> GetSelection() const;
void SelectLine(int line);
protected:
virtual void OnDraw(wxDC& dc);
DECLARE_EVENT_TABLE();
void OnMouseEvent(wxMouseEvent& event);
int m_lineHeight;
int m_lineCount;
std::set<int> m_selectedLines;
int m_focusedLine;
};
#endif //__CUSTOMHIGHTLISTCTRL_H__
syntax highlighted by Code2HTML, v. 0.9.1