Fix SetItemCount bug with adding items, a blind fix for generic control dnd issues, native control impls for GetTopItem and GetScrollPos, and improve the code paths of the drawing color code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2006-11-28 06:52:39 +00:00
parent 9fe25f1329
commit 02095058ef
2 changed files with 79 additions and 25 deletions

View File

@@ -339,6 +339,11 @@ class WXDLLEXPORT wxListCtrl: public wxControl
SetFocus();
}
virtual int GetScrollPos(int orient) const;
virtual void SetDropTarget( wxDropTarget *dropTarget );
virtual wxDropTarget* GetDropTarget() const;
// with CG, we need to get the context from an kEventControlDraw event
// unfortunately, the DataBrowser callbacks don't provide the context
// and we need it, so we need to set/remove it before and after draw
@@ -347,6 +352,7 @@ class WXDLLEXPORT wxListCtrl: public wxControl
void* MacGetDrawingContext() { return m_cgContext; }
protected:
// protected overrides needed for pimpl approach
virtual void DoSetSize(int x, int y,
int width, int height,