Lockwindowupdate

Tech-Archive recommends: Fix windows errors by optimizing your registry



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?

.



Relevant Pages

  • Re: Setting NonClient attributes for a single window
    ... We have ported an app from XP to Vista and all seems to work great ... The app is written in VC++ ... these windows has the Vista Aero big border around them and we'd like ... to get rid of that border just for our app and not the entire system. ...
    (microsoft.public.win32.programmer.ui)
  • Re: Lockwindowupdate
    ... When the app is shutdown several windows do not ... fully redraw themselves. ... displayed on top of the picture box); don't know if this is valid for MS VB ...
    (microsoft.public.vb.winapi)
  • Setting NonClient attributes for a single window
    ... We have ported an app from XP to Vista and all seems to work great ... The app is written in VC++ ... these windows has the Vista Aero big border around them and we'd like ... to get rid of that border just for our app and not the entire system. ...
    (microsoft.public.win32.programmer.ui)
  • Re: opened window loses priority
    ... B> couple of words the border around the window will go form dark blue ... B> light coloured blue like the windows im not working on and i will ... have u tried to check your system on spyware app? ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Windows.. its like coming home!
    ... gradual transition, especially in going from OS 9 to OS X. ... They needed something that could compete with Windows, ... mean by the "2 of every app" comment before - Apple took whatever apps ... I've found that because the Dock shows applications rather than windows, ...
    (comp.sys.mac.advocacy)