wxListCtrl custom drawing seems to work

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-12-05 00:20:58 +00:00
parent aaa37c0d23
commit d62228a645
4 changed files with 86 additions and 53 deletions

View File

@@ -124,6 +124,10 @@ public:
void SetFont(const wxFont& font) { m_font = font; }
// accessors
bool HasTextColour() const { return m_colText.Ok(); }
bool HasBackgroundColour() const { return m_colBack.Ok(); }
bool HasFont() const { return m_font.Ok(); }
const wxColour& GetTextColour() const { return m_colText; }
const wxColour& GetBackgroundColour() const { return m_colBack; }
const wxFont& GetFont() const { return m_font; }
@@ -142,6 +146,7 @@ class WXDLLEXPORT wxListItem : public wxObject
{
public:
wxListItem();
~wxListItem() { delete m_attr; }
// setters
void SetMask(long mask) { m_mask = mask; }

View File

@@ -19,6 +19,7 @@
#include "wx/control.h"
#include "wx/event.h"
#include "wx/imaglist.h"
#include "wx/hash.h"
/*
The wxListCtrl can show lists of items in four different modes:
@@ -340,7 +341,10 @@ protected:
int m_colCount; // Windows doesn't have GetColumnCount so must
// keep track of inserted/deleted columns
// TRUE fi we have any items with custom attributes
// the hash table we use for storing pointers to the items attributes
wxHashTable m_attrs;
// TRUE if we have any items with custom attributes
bool m_hasAnyAttr;
private: