m_count should match ListView_GetItemCount
Robert Luchner
r.luchner at gmx.at
Thu Nov 2 03:33:33 PST 2006
Hai Micah!
Micah schrieb:
> Windows XP
> wxWidgets 2.6.3
> wxListView
>
> When I call wxListView::SetItemCount(...) for my virtual list control I
> get an assertion:
> m_count should match ListView_GetItemCount
>
Witch Type ist m_count?
I Think the result of listView->GetItemCount() is long...
In my app this is ok!
> When I step through the code line at a time I can see that
> SendMessage(..., LVM_SETITEMCOUNT, ...) is returning 1 (according to
> MSDN this means success) but then 3 lines later SendMessage(...,
> LVM_GETITEMCOUNT, ...) is returning 0, indicating that no items are
> set.
>
> Anyone have any idea why LVM_SETITEMCOUNT isn't setting the number of
> items?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
>
Greetings
Robert
More information about the wx-users
mailing list