if ( wxStyleHasBorder(m_windowStyle) )
msStyle |= WS_BORDER;
- m_hWnd = (WXHWND)::CreateWindowEx(MakeExtendedStyle(m_windowStyle), _T("STATIC"), (const wxChar *)label,
+ m_hWnd = (WXHWND)::CreateWindowEx(MakeExtendedStyle(m_windowStyle), wxT("STATIC"), (const wxChar *)label,
msStyle,
0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)m_windowId,
wxGetInstance(), NULL);
- wxCHECK_MSG( m_hWnd, FALSE, _T("Failed to create static ctrl") );
+ wxCHECK_MSG( m_hWnd, FALSE, wxT("Failed to create static ctrl") );
#if wxUSE_CTL3D
/*
heightTextTotal = 0, heightLine;
wxString curLine;
- for ( const char *pc = text; ; pc++ ) {
- if ( *pc == '\n' || *pc == '\0' ) {
+ for ( const wxChar *pc = text; ; pc++ ) {
+ if ( *pc == wxT('\n') || *pc == wxT('\0') ) {
GetTextExtent(curLine, &widthLine, &heightLine);
if ( widthLine > widthTextMax )
widthTextMax = widthLine;
heightTextTotal += heightLine;
- if ( *pc == '\n' ) {
+ if ( *pc == wxT('\n') ) {
curLine.Empty();
}
else {