m_hWnd = (WXHWND)::CreateWindow
(
_T("STATIC"),
- "",
+ _T(""),
WS_VISIBLE | WS_CHILD |
SS_GRAYRECT | SS_SUNKEN, // | SS_ETCHEDFRAME,
pos.x, pos.y, sizeReal.x, sizeReal.y,
heightTextTotal = 0, heightLine;
wxString curLine;
- for ( const char *pc = text; ; pc++ ) {
- if ( *pc == '\n' || *pc == '\0' ) {
+ for ( const wxChar *pc = text; ; pc++ ) {
+ if ( *pc == _T('\n') || *pc == _T('\0') ) {
GetTextExtent(curLine, &widthLine, &heightLine);
if ( widthLine > widthTextMax )
widthTextMax = widthLine;
heightTextTotal += heightLine;
- if ( *pc == '\n' ) {
+ if ( *pc == _T('\n') ) {
curLine.Empty();
}
else {
if ( ::GetUserName(buf, &nSize) == 0 )
{
// actually, it does happen on Win9x if the user didn't log on
- DWORD res = ::GetEnvironmentVariable("username", buf, maxSize);
+ DWORD res = ::GetEnvironmentVariable(_T("username"), buf, maxSize);
if ( res == 0 )
{
// not found