Results 1 to 11 of 11

Thread: Using Bitblt with a window which is not active

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hi,

    I use Bitblt with a window and works great, but when the window doing the bitblt-ing is not the window with the focus, the bitblt routine sends whatever is on the SCREEN at the location pointed to by the bitblt routine.

    So as i understand it, even though i am pssing a Hdc param it is Bitblting the screen Hdc in effect, as if another is on top the window bitblt-ing its covering it.

    Any Ideas?


  2. #2
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    I had the same question earlier under posting "Copying an image into a Form".

    I am still waiting for a reply.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hey Nitro,
    Hi and do you have an email?

  4. #4
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    Chemically formulated as: [email protected]

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    HI NO2 and Zaf! Try to activate the window before you use bitblt.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Hi Kedaman, and thanks for your input too,

    But.. As i'm using a timer control i'm not really keen on activating my window as the timer is set to approximately 10 milliseconds and boy , that just means that by the time the call is processed its time to do it again.

    I was thinking more along the lines of juggling the memeory data directly, but do not know enough of the WinApi to do this, then again i might even be barking up the wrong tree.
    Zaf
    Thanks to everyone who is giving me help

  7. #7
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Then I don't know, The DC will be captured directly from the screen, not behind a window and what I know, there is no other direct ways of capturing the whole window (with it's controls)

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    I'm more after just some picture box controls rather than the whole window.

  9. #9
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    What exactly are you trying to do? by the sound of it there may be a better way of doing it.

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    I've wrote a prog to animate the start button completely in VB and it works super only....when another window is activated.....

  11. #11
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    How are you today Zaf Khan?

    Thanks for the code the other day.

    As for your questions, I tried everything to capture only a specific window, but still only got the entire screen. Therefore, I don't think we can capture a minimize window?

    If I can find a way, I will sure email it to you.

    See Ya for now!
    Chemically Formulated As:
    Dr. Nitro

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