X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/def6fb9bd8ae91def693b8a30b9d6b5f20b5ce98..26b833297883b4cbfdc9fd09d9882efe16f13f97:/src/msw/choice.cpp diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 86bf29fc1e..d157992171 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -69,10 +69,10 @@ bool wxChoice::Create(wxWindow *parent, wxASSERT_MSG( !(style & wxCB_DROPDOWN) && !(style & wxCB_READONLY) && !(style & wxCB_SIMPLE), - _T("this style flag is ignored by wxChoice, you " + wxT("this style flag is ignored by wxChoice, you " "probably want to use a wxComboBox") ); - if ( !MSWCreateControl(_T("COMBOBOX"), msStyle) ) + if ( !MSWCreateControl(wxT("COMBOBOX"), msStyle) ) return FALSE; for ( int i = 0; i < n; i++ ) @@ -102,7 +102,7 @@ int wxChoice::DoAppend(const wxString& item) void wxChoice::Delete(int n) { - wxCHECK_RET( n < GetCount(), _T("invalid item index in wxChoice::Delete") ); + wxCHECK_RET( n < GetCount(), wxT("invalid item index in wxChoice::Delete") ); SendMessage(GetHwnd(), CB_DELETESTRING, n, 0); } @@ -180,7 +180,7 @@ void wxChoice::DoSetClientData( int n, void* clientData ) { if ( SendMessage(GetHwnd(), CB_SETITEMDATA, n, (LPARAM)clientData) == CB_ERR ) { - wxLogLastError(_T("CB_SETITEMDATA")); + wxLogLastError(wxT("CB_SETITEMDATA")); } } @@ -189,7 +189,7 @@ void* wxChoice::DoGetClientData( int n ) const LPARAM rc = SendMessage(GetHwnd(), CB_GETITEMDATA, n, 0); if ( rc == CB_ERR ) { - wxLogLastError(_T("CB_GETITEMDATA")); + wxLogLastError(wxT("CB_GETITEMDATA")); // unfortunately, there is no way to return an error code to the user rc = (LPARAM) NULL;