|
-
Oct 19th, 2000, 02:01 PM
#1
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!
-
Oct 19th, 2000, 02:18 PM
#2
Fanatic Member
Try to use GetDC(Picture2.hWnd) instead of only Picture2.hDC.
-
Oct 19th, 2000, 02:34 PM
#3
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!
-
Oct 19th, 2000, 02:56 PM
#4
Fanatic Member
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
-
Oct 19th, 2000, 03:04 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|