Results 1 to 5 of 5

Thread: bitblt and shapes

  1. #1

    Thread Starter
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    hi,
    I'm still working on my old program.
    This time I try to BITBLT one PictureBox onto another, that should be now problem, but...
    On my first PictureBox I have a Shape which should be visible on the second PictureBox after the BITBLT. But that's seems to be a problem, WHY?
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  2. #2
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    Try to use GetDC(Picture2.hWnd) instead of only Picture2.hDC.

  3. #3

    Thread Starter
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Tried it, but I'm getting a "Sub or function unknown".
    How do I declare GetDC, or is it not possible in old VB4?
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  4. #4
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    In VB5-6, use:
    Code:
    Declare Function GetDC Lib "user32" Alias "GetDC" (ByVal hwnd As Long) As Long
    In VB3-4, use:

    Code:
    Declare Function GetDC Lib "user" (hwnd As Integer) As Integer

  5. #5

    Thread Starter
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    Thank's, your VB5/6 example works for me (using VB4 32-bit)
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

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