X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6f2a8911e509fd9e61f881cc881a97f5aa05ae8..cd4e467319637fdbbdb7774485e8dc78fb8272a2:/src/msw/wince/checklst.cpp diff --git a/src/msw/wince/checklst.cpp b/src/msw/wince/checklst.cpp index 334f86fd51..9cfd3541d6 100644 --- a/src/msw/wince/checklst.cpp +++ b/src/msw/wince/checklst.cpp @@ -36,8 +36,6 @@ // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxControl) - // ---------------------------------------------------------------------------- // implementation of wxCheckListBox class // ---------------------------------------------------------------------------- @@ -154,11 +152,11 @@ void wxCheckListBox::OnSize(wxSizeEvent& event) void wxCheckListBox::DoDeleteOneItem(unsigned int n) { - wxCHECK_RET( IsValid( n ), _T("invalid index in wxCheckListBox::Delete") ); + wxCHECK_RET( IsValid( n ), wxT("invalid index in wxCheckListBox::Delete") ); if ( !ListView_DeleteItem(GetHwnd(), n) ) { - wxLogLastError(_T("ListView_DeleteItem")); + wxLogLastError(wxT("ListView_DeleteItem")); } m_itemsClientData.RemoveAt(n); } @@ -169,7 +167,7 @@ void wxCheckListBox::DoDeleteOneItem(unsigned int n) bool wxCheckListBox::IsChecked(unsigned int uiIndex) const { wxCHECK_MSG( IsValid( uiIndex ), false, - _T("invalid index in wxCheckListBox::IsChecked") ); + wxT("invalid index in wxCheckListBox::IsChecked") ); return (ListView_GetCheckState(((HWND)GetHWND()), uiIndex) != 0); } @@ -177,7 +175,7 @@ bool wxCheckListBox::IsChecked(unsigned int uiIndex) const void wxCheckListBox::Check(unsigned int uiIndex, bool bCheck) { wxCHECK_RET( IsValid( uiIndex ), - _T("invalid index in wxCheckListBox::Check") ); + wxT("invalid index in wxCheckListBox::Check") ); ListView_SetCheckState(((HWND)GetHWND()), uiIndex, bCheck) } @@ -195,7 +193,7 @@ void wxCheckListBox::DoClear() DoDeleteOneItem(n); } - wxASSERT_MSG( IsEmpty(), _T("logic error in DoClear()") ); + wxASSERT_MSG( IsEmpty(), wxT("logic error in DoClear()") ); } unsigned int wxCheckListBox::GetCount() const @@ -234,7 +232,7 @@ wxString wxCheckListBox::GetString(unsigned int n) const const int bufSize = 513; wxChar buf[bufSize]; ListView_GetItemText( (HWND)GetHWND(), n, 0, buf, bufSize - 1 ); - buf[bufSize-1] = _T('\0'); + buf[bufSize-1] = wxT('\0'); wxString str(buf); return str; } @@ -248,7 +246,7 @@ bool wxCheckListBox::IsSelected(int n) const void wxCheckListBox::SetString(unsigned int n, const wxString& s) { wxCHECK_RET( IsValid( n ), - _T("invalid index in wxCheckListBox::SetString") ); + wxT("invalid index in wxCheckListBox::SetString") ); wxChar *buf = new wxChar[s.length()+1]; wxStrcpy(buf, s.c_str()); ListView_SetItemText( (HWND)GetHWND(), n, 0, buf ); @@ -276,7 +274,7 @@ int wxCheckListBox::DoInsertItems(const wxArrayStringsAdapter & items, wxZeroMemory(newItem); newItem.iItem = pos + i; n = ListView_InsertItem( (HWND)GetHWND(), & newItem ); - wxCHECK_MSG( n != -1, -1, _T("Item not added") ); + wxCHECK_MSG( n != -1, -1, wxT("Item not added") ); SetString( n, items[i] ); m_itemsClientData.Insert(NULL, n); @@ -292,7 +290,7 @@ void wxCheckListBox::DoSetFirstItem(int n) if(pos == n) return; POINT ppt; BOOL ret = ListView_GetItemPosition( (HWND)GetHWND(), n, &ppt ); - wxCHECK_RET( ret == TRUE, _T("Broken DoSetFirstItem") ); + wxCHECK_RET( ret == TRUE, wxT("Broken DoSetFirstItem") ); ListView_Scroll( (HWND)GetHWND(), 0, 0 ); ListView_Scroll( (HWND)GetHWND(), 0, ppt.y ); }