Lockwindowupdate
- From: "Steve" <sredmyer@xxxxxxxxxx>
- Date: 26 Nov 2006 12:07:18 -0800
I have written an app which has, as it's main screen, a form set to
maximized with no border. Through out the app this screen has many
graphics methods used to constantly redraw its background and other
contents. To prevent noticable flashing (as various parts are drawn) I
call LockWindowUpdate(Me.hWnd) when beginning the repaint and then
LockWindowUpdate(0) when finshed. This works really well however.
When the app is shutdown several windows (including the taskbar) do not
fully redraw themselves. It appears as though the main windows will
get redrawn but they do not refresh their child windows. As the mouse
is passed over the undrawn areas they do redraw. I can also cause the
windows to be redrawn simply by covering them then uncovering them
causing (I presume as WM_PAINT msg to be sent). In attempts to resolve
this issue I have also tried (instead of LockWindowUpdate) sending the
WM_SETREDRAW message...same results. I also tried calling
BroadcastSystemMessage(BSF_POSTMESSAGE, BSM_ALLCOMPONENTS, WM_PAINT,
0&, 0&) at shut down to cause all windows to repaint...same results
Any body got any ideas?
.
- Follow-Ups:
- Re: Lockwindowupdate
- From: Thorsten Albers
- Re: Lockwindowupdate
- Prev by Date: Re: How can I send 'save' message to the external excel app. in VB.NET
- Next by Date: Re: Lockwindowupdate
- Previous by thread: Re: How can I send 'save' message to the external excel app. in VB.NET
- Next by thread: Re: Lockwindowupdate
- Index(es):
Relevant Pages
|