Results 1 to 2 of 2

Thread: Is window fully painted

  1. #1

    Thread Starter
    Fanatic Member WorkHorse's Avatar
    Join Date
    Jul 2002
    Location
    Where you live.
    Posts
    591

    Is window fully painted

    How can I tell if a window is fully painted? I'm taking some screen shots of different windows, which works fine except that I have to bring the window to the front before I can capture the image and sometimes it captures only a partial image because I'm BitBlting it before the window is fully drawn. It works OK only if I put in a long Sleep before the BitBlt.

    I'v tried using both BringWindowToTop and SetForegroundWindow to bring the window to the top. I've tried a do until GetForegroundWindow = my hWnd with a DoEvents in the loop. I've tried RedrawWindow before the BitBlt. I still get a partial image sometimes unless I Sleep.

    I can I tell if the window is fully painted?

  2. #2
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    Re: Is window fully painted

    I don't think there is another way, without just waiting a second between the actualy capture and bringing the window to the front.

    How long is your Sleep function having to be? shouldn't be too bad i wouldn't think.
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

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