BeeJ
11/8/2011 12:36:00 AM
Listbox with forecolor(white) and backcolor(blue) set. MultiSelect
Enabled. No checkboxes or columns.
When the form is resized, the ListBox text flashes.
The ListBox is not being resized or anything else done to it then.
Form AutoRedraw is False.
If I try
Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock
As Long) As Long
LockWindowUpdate lstBox.hWnd
at the start of Resize, how do I unlock without using a timer? Do I
need to? Seems to operate OK while "locked".
And how do I keep the listbox looking like garbage as the form is
rezied over it when LockWindowUpdate lstBox.hWnd is used. Once I
release the statusbar resize handle, the listbox refreshes to present a
correct image, but yuck(technical term) until then.
Additionally, can I call LockWindowUpdate for several different
controls, then how do I unlock one. LockWindowUpdate 0& unlocks all?
Or is there a stack unlocking in the reverse order of locked?
I have a bunch of flashing controls that I would like to squelch (I'm
old so this is in my vocabulary).