views:

309

answers:

1

Hi..

does any one please tell me how to use double-buffer in windows-mobile listview

Thanks Grabi8

+2  A: 

There is no double-buffering of standard windows controls. What you probably want to do is turn off painting while adding items, then turn it back on.

SendMessage(hwndList, WM_SETREDRAW, FALSE, 0);

(fill the list)

SendMessage(hwndList, WM_SETREDRAW, TRUE, 0);

BitBank
Or if you are using C# use ListView.BeginUpdate and ListView.EndUpdate, detailed in this MSDN article:http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.beginupdate.aspx
Matt