Re: Updating the screen

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"GT" <ContactGT@xxxxxxxxxxx> wrote in message
news:45477141$0$4942$9a6e19ea@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
"Tom Serface" <tserface@xxxxxxx> wrote in message
news:eM2nNfI$GHA.1224@xxxxxxxxxxxxxxxxxxxxxxx
Is something like this what you're looking for?

http://www.codeproject.com/docking/bitmaptoolbar.asp

Tom


Thanks Tom, but that's not really what I have - I am trying to get a
dialog window to update the screen when resized. The dialog has no
controls, but I manually draw the content (a graph). I capture the OnPaint
event and redraw everything, but the screen never actually changes until I
move another window over the top and away again. Its like the window isn't
being refreshed. If I step into the code, the OnPaint event is firing and
my code is running and getting the correct new window sizes, but the
screen doesn't show the new OnPaint work!

Solved the problem (via a discussion board). I needed to add
Invalidate(false); into my OnSize method!


.



Relevant Pages

  • Re: PolyLine and autoscrolling canvas
    ... The ONLY, repeat ONLY, valid place for this code is in OnPaint or OnDraw. ... You just said you resize the window, therefore, this value is inherently nonsense ...
    (microsoft.public.vc.mfc)
  • Re: CSplitterWnd paint problems
    ... control "draw its child elements", since child windows draw themselves, and are not in any ... way drawn by the parent window. ... >> equivalent to the area between the splitter borders. ... What do you think your OnPaint does? ...
    (microsoft.public.vc.mfc)
  • Re: image is not redrawed sometimes when I bring my window to foregrou
    ... CPaintDC dc; ... done in the OnPaint handler of that window, not in some other randomly-selected window. ...
    (microsoft.public.vc.mfc)
  • Re: Redraw/repaint a PictureBox control
    ... Depending on the complexity of your drawing requirements, most repainting ... can be done from the OnPaint event. ... >> Can someone tell me how you go about handling events where your window ... >> your picturebox control to be repainted instead of showing large, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Repainting
    ... Whenever I resize the form larger, ... >OnPaint() event is executed and I redraw the contents of the form. ... when portions of a window are exposed. ... >OnPaintevent handler to execute, why would putting the code, ...
    (microsoft.public.win32.programmer.directx.managed)