When my program deletes files in a folder, the ExploreListGadget
pointing to that folder gets crazy, showing anymore files and ExploreListGadget scrollbar jumps up and down till last file is deleted.
How can I freeze that window till end of operation?
Jumping scrollbar in ExplorerListGadget
Try using the #WM_SETREDRAW message on the explorer list before starting the deletion and then use again after finishing.
Just don't forget to invalidate the gadget's client area (InvalidateRect_()) once you reset the redraw flag.
Use :
before the deletions, and use
afterwards.
Just don't forget to invalidate the gadget's client area (InvalidateRect_()) once you reset the redraw flag.
Use :
Code: Select all
SendMessage_(GadgetID(#myList), #WM_SETREDRAW, 0, 0)
Code: Select all
SendMessage_(GadgetID(#myList), #WM_SETREDRAW, 1, 0)
InvalidateRect_(GadgetID(#myList), 0, 1)
I may look like a mule, but I'm not a complete ass.