wxOS2 with Open Watcom: correct PCH usage, missing headers, warning fixes, source cleaning and other Watcom adjustements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -65,9 +65,7 @@ wxListBoxItem::wxListBoxItem(
|
||||
SetMarginWidth(0);
|
||||
} // end of wxListBoxItem::wxListBoxItem
|
||||
|
||||
wxOwnerDrawn* wxListBox::CreateItem(
|
||||
size_t n
|
||||
)
|
||||
wxOwnerDrawn* wxListBox::CreateItem( size_t WXUNUSED(n) )
|
||||
{
|
||||
return new wxListBoxItem();
|
||||
} // end of wxListBox::CreateItem
|
||||
@@ -508,9 +506,7 @@ bool wxListBox::HasMultipleSelection() const
|
||||
return (m_windowStyle & wxLB_MULTIPLE) || (m_windowStyle & wxLB_EXTENDED);
|
||||
} // end of wxListBox::HasMultipleSelection
|
||||
|
||||
int wxListBox::GetSelections(
|
||||
wxArrayInt& raSelections
|
||||
) const
|
||||
int wxListBox::GetSelections( wxArrayInt& raSelections ) const
|
||||
{
|
||||
int nCount = 0;
|
||||
LONG lItem;
|
||||
@@ -557,7 +553,6 @@ int wxListBox::GetSelections(
|
||||
}
|
||||
return nCount;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
else // single-selection listbox
|
||||
{
|
||||
@@ -892,14 +887,10 @@ bool wxListBox::OS2OnDraw (
|
||||
|
||||
wxCHECK(pData, false );
|
||||
|
||||
wxDC vDc;
|
||||
wxRect vRect( wxPoint( pDrawStruct->rclItem.xLeft
|
||||
,pDrawStruct->rclItem.yTop
|
||||
)
|
||||
,wxPoint( pDrawStruct->rclItem.xRight
|
||||
,pDrawStruct->rclItem.yBottom
|
||||
)
|
||||
);
|
||||
wxDC vDc;
|
||||
wxPoint pt1( pDrawStruct->rclItem.xLeft, pDrawStruct->rclItem.yTop );
|
||||
wxPoint pt2( pDrawStruct->rclItem.xRight, pDrawStruct->rclItem.yBottom );
|
||||
wxRect vRect( pt1, pt2 );
|
||||
|
||||
vDc.SetHPS(pDrawStruct->hps);
|
||||
|
||||
@@ -976,4 +967,3 @@ bool wxListBox::OS2OnDraw (
|
||||
#endif // ndef for wxUSE_OWNER_DRAWN
|
||||
|
||||
#endif // ndef for wxUSE_LISTBOX
|
||||
|
||||
|
Reference in New Issue
Block a user