m_count should match ListView_GetItemCount

Vadim Zeitlin vadim at wxwindows.org
Wed Nov 1 17:49:13 PST 2006


On 1 Nov 2006 15:30:11 -0800 Micah <micahc at gmail.com> wrote:

M> When I step through the code line at a time I can see that
M> SendMessage(..., LVM_SETITEMCOUNT, ...) is returning 1 (according to
M> MSDN this means success) but then 3 lines later SendMessage(...,
M> LVM_GETITEMCOUNT, ...) is returning 0, indicating that no items are
M> set.
M> 
M> Anyone have any idea why LVM_SETITEMCOUNT isn't setting the number of
M> items?

 Not really, no. Does the same problem happen in the listctrl sample if you
switch to virtual view?

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list