#if wxUSE_NATIVE_STATUSBAR
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxStatusBar95, wxStatusBar);
BEGIN_EVENT_TABLE(wxStatusBar95, wxStatusBar)
EVT_SIZE(wxStatusBar95::OnSize)
END_EVENT_TABLE()
-#endif //USE_SHARED_LIBRARY
// ----------------------------------------------------------------------------
wstyle |= SBARS_SIZEGRIP;
m_hWnd = (WXHWND)CreateStatusWindow(wstyle,
- _T(""),
+ wxT(""),
(HWND)parent->GetHWND(),
m_windowId);
if ( m_hWnd == 0 ) {
- wxLogSysError(_T("can't create status bar window"));
+ wxLogSysError(wxT("can't create status bar window"));
return FALSE;
}
void wxStatusBar95::SetFieldsWidth()
{
+ if ( !m_nFields )
+ return;
+
int *pWidths = new int[m_nFields];
int nWindowWidth, y;
}
if ( !StatusBar_SetParts(hwnd, m_nFields, pWidths) ) {
- wxLogLastError(_T("StatusBar_SetParts"));
+ wxLogLastError(wxT("StatusBar_SetParts"));
}
delete [] pWidths;
void wxStatusBar95::SetStatusText(const wxString& strText, int nField)
{
if ( !StatusBar_SetText(hwnd, nField, strText) ) {
- wxLogLastError(_T("StatusBar_SetText"));
+ wxLogLastError(wxT("StatusBar_SetText"));
}
}
{
wxASSERT( (nField > -1) && (nField < m_nFields) );
- wxString str(_T(""));
+ wxString str(wxT(""));
int len = StatusBar_GetTextLen(hwnd, nField);
if (len > 0)
{