B
b747_440
Hello Newsgroup,
I try to resize and move a picturebox. However, after each operation
the picture box is being redrawn. This causes flickering. Is it
possible to suppress the first redraw and draw both operations at once
after they have been completed?
I have tried overriding OnPaint, OnBackgroundErase, etc. Double
Buffering, AllPaintingInWmPaint, etc. has been set to true.
No success so far.
Now I'm trying to catch Windows Messages like WM_WINDOWPOSCHANGING by
overriding WndProc.
I have figured out, these messages are being sent while resizing and
moving the picturebox:
WM_WINDOWPOSCHANGING
WM_NCPAINT
WM_ERASEBKGND
WM_WINDOWPOSCHANGED
WM_MOVE
WM_NCCALCSIZE
WM_SIZE
WM_GETTEXTLENGTH
WM_GETTEXT
Any idea, where to start?
Thanks a lot,
Bart
I try to resize and move a picturebox. However, after each operation
the picture box is being redrawn. This causes flickering. Is it
possible to suppress the first redraw and draw both operations at once
after they have been completed?
I have tried overriding OnPaint, OnBackgroundErase, etc. Double
Buffering, AllPaintingInWmPaint, etc. has been set to true.
No success so far.
Now I'm trying to catch Windows Messages like WM_WINDOWPOSCHANGING by
overriding WndProc.
I have figured out, these messages are being sent while resizing and
moving the picturebox:
WM_WINDOWPOSCHANGING
WM_NCPAINT
WM_ERASEBKGND
WM_WINDOWPOSCHANGED
WM_MOVE
WM_NCCALCSIZE
WM_SIZE
WM_GETTEXTLENGTH
WM_GETTEXT
Any idea, where to start?
Thanks a lot,
Bart