Mods for Wine compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-08-30 20:34:27 +00:00
parent f13b39c0c3
commit 3bce6687f4
30 changed files with 1128 additions and 745 deletions

View File

@@ -110,7 +110,12 @@ private:
m_item = new LV_ITEM((LV_ITEM&)item);
if ( (item.mask & LVIF_TEXT) && item.pszText )
{
#ifdef __WXWINE__
// FIXME
m_buf = new wxWC2WXbuf(wxConvLocal.cWC2WX((const __wchar_t* ) item.pszText));
#else
m_buf = new wxWC2WXbuf(wxConvLocal.cWC2WX(item.pszText));
#endif
m_item->pszText = (wxChar*)m_buf->data();
}
else
@@ -970,11 +975,7 @@ bool wxListCtrl::GetItemRect(long item, wxRect& rect, int code) const
codeWin = LVIR_BOUNDS;
}
#ifdef __WXWINE__
bool success = ListView_GetItemRect(GetHwnd(), (int) item, &rectWin ) != 0;
#else
bool success = ListView_GetItemRect(GetHwnd(), (int) item, &rectWin, codeWin) != 0;
#endif
rect.x = rectWin.left;
rect.y = rectWin.top;