X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/316189733a8b7f28aa7f9f555884bb45da30da33..08bce50191228ae4a423b488beedcc8ef1ebb30c:/src/msw/wince/checklst.cpp diff --git a/src/msw/wince/checklst.cpp b/src/msw/wince/checklst.cpp index 8cfaca6972..5f5bf98304 100644 --- a/src/msw/wince/checklst.cpp +++ b/src/msw/wince/checklst.cpp @@ -107,6 +107,8 @@ bool wxCheckListBox::Create(wxWindow *parent, wxWindowID id, wxZeroMemory(col); ListView_InsertColumn(GetHwnd(), 0, &col ); + ListView_SetItemCount( GetHwnd(), n ); + // initialize the contents for ( int i = 0; i < n; i++ ) { @@ -303,6 +305,8 @@ void wxCheckListBox::DoSetItemClientObject(int n, wxClientData* clientData) void wxCheckListBox::DoSetItems(const wxArrayString& items, void **clientData) { + ListView_SetItemCount( GetHwnd(), GetCount() + items.GetCount() ); + for( size_t i = 0; i < items.GetCount(); i++ ) { int pos = Append(items[i]);