Compilation fix for !WXWIN_COMPATIBILITY_2_4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
#pragma interface "choice.h"
|
||||
#endif
|
||||
|
||||
class WXDLLIMPEXP_BASE wxSortedArrayString;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxChoice
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
#include "wx/list.h"
|
||||
|
||||
class WXDLLIMPEXP_BASE wxSortedArrayString;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxListBox
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -14,6 +14,8 @@
|
||||
#pragma interface "choice.h"
|
||||
#endif
|
||||
|
||||
class WXDLLIMPEXP_BASE wxSortedArrayString;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxChoice
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -17,6 +17,8 @@
|
||||
|
||||
#include "wx/list.h"
|
||||
|
||||
class WXDLLIMPEXP_BASE wxSortedArrayString;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxListBox
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@@ -792,7 +792,8 @@ void wxHtmlHelpFrame::CreateContents()
|
||||
else if (m_hfStyle & wxHF_ICONS_BOOK_CHAPTER)
|
||||
image = (it->m_Level == 1) ? IMG_Book : IMG_Folder;
|
||||
m_ContentsBox->SetItemImage(roots[it->m_Level], image);
|
||||
m_ContentsBox->SetItemSelectedImage(roots[it->m_Level], image);
|
||||
m_ContentsBox->SetItemImage(roots[it->m_Level], image,
|
||||
wxTreeItemIcon_Selected);
|
||||
imaged[it->m_Level] = TRUE;
|
||||
}
|
||||
}
|
||||
|
@@ -1015,7 +1015,8 @@ void wxTreeCtrl::SetItemImage(const wxTreeItemId& item, int image,
|
||||
case wxTreeItemIcon_Normal:
|
||||
{
|
||||
const int imageNormalOld = GetItemImage(item);
|
||||
const int imageSelOld = GetItemSelectedImage(item);
|
||||
const int imageSelOld =
|
||||
GetItemImage(item, wxTreeItemIcon_Selected);
|
||||
|
||||
// always set the normal image
|
||||
imageNormal = image;
|
||||
@@ -1040,7 +1041,7 @@ void wxTreeCtrl::SetItemImage(const wxTreeItemId& item, int image,
|
||||
// the wxTreeItemIndirectData GetItemXXXImage() will use it to
|
||||
// get the images
|
||||
imageNormal = GetItemImage(item);
|
||||
imageSel = GetItemSelectedImage(item);
|
||||
imageSel = GetItemImage(item, wxTreeItemIcon_Selected);
|
||||
|
||||
// if it doesn't have it yet, add it
|
||||
wxTreeItemIndirectData *data = new
|
||||
@@ -1772,10 +1773,12 @@ void wxTreeCtrl::Toggle(const wxTreeItemId& item)
|
||||
DoExpand(item, TVE_TOGGLE);
|
||||
}
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_4
|
||||
void wxTreeCtrl::ExpandItem(const wxTreeItemId& item, int action)
|
||||
{
|
||||
DoExpand(item, action);
|
||||
}
|
||||
#endif
|
||||
|
||||
void wxTreeCtrl::Unselect()
|
||||
{
|
||||
|
Reference in New Issue
Block a user