Misc. 16-bit compilation fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-09-05 15:14:50 +00:00
parent ed75793627
commit 1044a386f0
28 changed files with 145 additions and 69 deletions

View File

@@ -1296,7 +1296,7 @@ void wxTreeCtrl::SetImageList(wxImageList *imageList)
// May be toggle off. Then wxTreeCtrl will spread when
// necessary (which might look ugly).
#if 1
wxPaintDC dc(this);
wxClientDC dc(this);
m_lineHeight = (int)(dc.GetCharHeight() + 4);
int
width = 0,
@@ -1527,7 +1527,7 @@ void wxTreeCtrl::DrawBorder(wxTreeItemId &item)
wxGenericTreeItem *i=item.m_pItem;
wxPaintDC dc(this);
wxClientDC dc(this);
PrepareDC( dc );
dc.SetLogicalFunction(wxINVERT);
@@ -1546,7 +1546,7 @@ void wxTreeCtrl::DrawLine(wxTreeItemId &item, bool below)
wxGenericTreeItem *i=item.m_pItem;
wxPaintDC dc(this);
wxClientDC dc(this);
PrepareDC( dc );
dc.SetLogicalFunction(wxINVERT);