Results 1 to 5 of 5

Thread: BitBlt prob...

  1. #1

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    Unhappy BitBlt prob...

    I am using BitBlt to draw a picture. I am having some probs...

    1) However, when the form on which the picture is drawn is moved, resized, minimized, etc. the picture is erased. How do I prevent this happening?

    2)If I move another form over my 'front' picbox, some of the picture is erased, since I can't set AutoRedraw to True.
    How can I make this picture 'redraw' even when this form doesn't have focus, to prevent this problem?

    Thanks.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Theres a Form_Paint -event.. put your drawing code there

  3. #3

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    That doesn't work I'm afraid.

    The Form_Paint event doesn't fire here.

    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  4. #4
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    it should .. hm even tried Form_Resize?

  5. #5

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Yep, it doesn't happen. The only event I have been able to capture is the GotFocus event of the control on the form with TabOrder = 0.
    But that is only captured when the form is clicked or something.

    I need to paint this pic again when I move something over it, without having to click on the picture to make it reappear.
    -----------------------------------------
    -RJ
    [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