Implementing column click event handler and SortItems function for native list ctrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2006-10-11 20:04:29 +00:00
parent 6862383251
commit 3fd864a139
2 changed files with 70 additions and 2 deletions

View File

@@ -13,6 +13,7 @@
#define _WX_LISTCTRL_H_
#include "wx/generic/listctrl.h"
#include <Carbon/Carbon.h>
class wxMacDataBrowserListCtrlControl;
class wxMacListControl;
@@ -306,6 +307,9 @@ class WXDLLEXPORT wxListCtrl: public wxControl
void Command(wxCommandEvent& event) { ProcessCommand(event); };
wxListCtrlCompare GetCompareFunc() { return m_compareFunc; };
long GetCompareFuncData() { return m_compareFuncData; };
protected:
// overrides needed for pimpl approach
virtual void DoSetSize(int x, int y,
@@ -317,7 +321,10 @@ protected:
wxGenericListCtrl* m_genericImpl; // allow use of the generic impl.
wxMacDataBrowserListCtrlControl* m_dbImpl;
EventHandlerRef m_macListCtrlEventHandler;
wxListCtrlCompare m_compareFunc;
long m_compareFuncData;
wxTextCtrl* m_textCtrl; // The control used for editing a label
wxImageList * m_imageListNormal; // The image list for normal icons
wxImageList * m_imageListSmall; // The image list for small icons