added a few #ifdefs needed to build a smaller library (patch 751523)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -172,19 +172,23 @@ bool wxGenericDragImage::Create(const wxString& str, const wxCursor& cursor)
|
||||
return Create(bitmap, cursor);
|
||||
}
|
||||
|
||||
#if wxUSE_TREECTRL
|
||||
// Create a drag image for the given tree control item
|
||||
bool wxGenericDragImage::Create(const wxTreeCtrl& treeCtrl, wxTreeItemId& id)
|
||||
{
|
||||
wxString str = treeCtrl.GetItemText(id);
|
||||
return Create(str);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if wxUSE_LISTCTRL
|
||||
// Create a drag image for the given list control item
|
||||
bool wxGenericDragImage::Create(const wxListCtrl& listCtrl, long id)
|
||||
{
|
||||
wxString str = listCtrl.GetItemText(id);
|
||||
return Create(str);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Begin drag
|
||||
bool wxGenericDragImage::BeginDrag(const wxPoint& hotspot,
|
||||
|
Reference in New Issue
Block a user