CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Gothenburg, Sweden
    Posts
    10

    preventing windowrepainting while resize

    How do I prevent mainwindow from repaint content while the window still resizes ??

    I have tried LockWindowupdate in OnWindowChanged/OnWindowChanging but i doesn't work.

    very greatful for any answer in this matter

    /Magnus


  2. #2
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Re: preventing windowrepainting while resize

    You could call SystemParametersInfo(SPI_SETDRAGFULLWINDOWS, FALSE, NULL, 0) to manually switch off the 'Show window contents while dragging' feature. This causes the repaint during a sizing. You can then set it back to TRUE afterwards.

    --
    Jason Teagle
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured