Click to See Complete Forum and Search --> : Help using LVM_REDRAWITEMS in visual basic6


method
07-07-2006, 04:31 AM
could any one show me how i can send an external listview a refresh using LVM_REDRAWITEMS .Thanks

I want to send refresh after setting the color


visual basic code

lItemPos = 0& ' first item
SendMessage hwnd, LVM_SETITEMSTATE, lItemPos, ByVal lxprocLVITEM

'SendMessage hwnd, LVM_SETTEXTBKCOLOR, 0, hexdec(16711935)
'SendMessage hwnd, LVM_SETTEXTBKCOLOR, 0, 16711935
'SendMessage hwnd, LVM_SETTEXTBKCOLOR, 0&, 0&
SendMessage hwnd, LVM_SETTEXTBKCOLOR, 0, 16711935

=> here i want to send a refresh to listview