X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5cd4cb75ee776215a4de0f0af694b4334a0fd97b..b04237742c51e022af8ca8fe8933437734f392a3:/include/wx/msw/listctrl.h diff --git a/include/wx/msw/listctrl.h b/include/wx/msw/listctrl.h index 635a0af233..eb5f7bbcdb 100644 --- a/include/wx/msw/listctrl.h +++ b/include/wx/msw/listctrl.h @@ -17,6 +17,10 @@ class WXDLLIMPEXP_FWD_CORE wxImageList; +// define this symbol to indicate the availability of SetColumnsOrder() and +// related functions +#define wxHAS_LISTCTRL_COLUMN_ORDER + /* The wxListCtrl can show lists of items in four different modes: wxLC_LIST: multicolumn list view, with optional small icons (icons could be @@ -398,7 +402,7 @@ protected: // get the item attribute, either by quering it for virtual control, or by // returning the one previously set using setter methods for a normal one - wxListItemAttr *DoGetItemAttr(long item) const; + wxListItemAttr *DoGetItemColumnAttr(long item, long column) const; wxTextCtrl* m_textCtrl; // The control used for editing a label @@ -438,6 +442,12 @@ protected: // return the attribute for the item (may return NULL if none) virtual wxListItemAttr *OnGetItemAttr(long item) const; + // return the attribute for the given item and column (may return NULL if none) + virtual wxListItemAttr *OnGetItemColumnAttr(long item, long WXUNUSED(column)) const + { + return OnGetItemAttr(item); + } + private: // process NM_CUSTOMDRAW notification message WXLPARAM OnCustomDraw(WXLPARAM lParam); @@ -446,13 +456,16 @@ private: // UpdateStyle()), only should be called if InReportView() void MSWSetExListStyles(); + // initialize the (already created) m_textCtrl with the associated HWND + void InitEditControl(WXHWND hWnd); + // destroy m_textCtrl if it's currently valid and reset it to NULL void DeleteEditControl(); DECLARE_DYNAMIC_CLASS(wxListCtrl) DECLARE_EVENT_TABLE() - DECLARE_NO_COPY_CLASS(wxListCtrl) + wxDECLARE_NO_COPY_CLASS(wxListCtrl); }; #endif // _WX_LISTCTRL_H_