]> git.saurik.com Git - wxWidgets.git/commitdiff
Couple more Unicode fixes.
authorOve Kaaven <ovek@arcticnet.no>
Fri, 23 Jul 1999 09:53:22 +0000 (09:53 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Fri, 23 Jul 1999 09:53:22 +0000 (09:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statline.cpp
src/msw/stattext.cpp
src/msw/utils.cpp

index d6ad57770d2594e5a3004c1dac1fd45ee33bcb14..bbf331ac854eb3610c9c8fc8a1c477a3a32d4004 100644 (file)
@@ -65,7 +65,7 @@ bool wxStaticLine::Create( wxWindow *parent,
     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,
index 31c7c0141b653a463ab145b0437edecc8effc42c..084a748c6cb011e7a1054f69d082783cadfc6707 100644 (file)
@@ -102,14 +102,14 @@ wxSize wxStaticText::DoGetBestSize()
         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 {
index 9f4ffbc76ce6d2ab3cdc67be45ff696991738131..35c2de8be9a7ceeb4563f83d0b27a8aa39fa28b8 100644 (file)
@@ -156,7 +156,7 @@ bool wxGetUserId(wxChar *buf, int maxSize)
     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