Abhay Sobti
2006-10-27 11:24:04 UTC
Hello Everyone,
I know this is a VB forum, but my question pertains to VFP. I am trying to
stop a ListView from redrawing itself as I am inserting 3000 ListItems.
However, the following code does not prevent it from redrawing. Can you
Help?
Abhay Sobti
#DEFINE WM_SETREDRAW 11
DECLARE INTEGER SendMessage IN user32 INTEGER hWnd,;
INTEGER Msg,;
INTEGER wParam,;
INTEGER lParam
=SendMessage(THIS.Lv.hWnd, WM_SETREDRAW ,.T.,0)
** Now I populate the ListBox
=SendMessage(THIS.Lv.hWnd, WM_SETREDRAW ,.F.,0)
I know this is a VB forum, but my question pertains to VFP. I am trying to
stop a ListView from redrawing itself as I am inserting 3000 ListItems.
However, the following code does not prevent it from redrawing. Can you
Help?
Abhay Sobti
#DEFINE WM_SETREDRAW 11
DECLARE INTEGER SendMessage IN user32 INTEGER hWnd,;
INTEGER Msg,;
INTEGER wParam,;
INTEGER lParam
=SendMessage(THIS.Lv.hWnd, WM_SETREDRAW ,.T.,0)
** Now I populate the ListBox
=SendMessage(THIS.Lv.hWnd, WM_SETREDRAW ,.F.,0)