// +1 for terminating NUL
wxString result;
- wxChar* buffer = result.GetWriteBuf(len + 1);
- ListBox_GetText(GetHwnd(), N, buffer);
- result.UngetWriteBuf();
+ ListBox_GetText(GetHwnd(), N, (wxChar*)wxStringBuffer(result, len + 1));
return result;
}
return;
TEXTMETRIC lpTextMetric;
- if ( !s.IsEmpty() )
+ if ( !s.empty() )
{
int existingExtent = (int)SendMessage(GetHwnd(), LB_GETHORIZONTALEXTENT, 0, 0L);
HDC dc = GetWindowDC(GetHwnd());