Im using bitblt to copy part of a picture into a picturebox but i cant get the code to work:
i have this at the start of the forms code:
Option Explicit
Private Declare Function _
BitBlt Lib "gdi32" _
(ByVal hDestDC As Long, _
ByVal X As Long, _
ByVal Y As Long, _
ByVal nWidth As Long, _
ByVal nHeight As Long, _
ByVal hSrcDC As Long, _
ByVal xSrc As Long, _
ByVal ySrc As Long, _
ByVal dwRop As Long) As Long
and I have this on a command button:
BitBlt Q.hDC, 0, 0, 1200, 360, imgSS.hDC, SSQX.Caption, SSQY.Caption, vbSrcCopy
But when I run the program it doesn't do anything. how do i get it to work?
Pete.
i have this at the start of the forms code:
Option Explicit
Private Declare Function _
BitBlt Lib "gdi32" _
(ByVal hDestDC As Long, _
ByVal X As Long, _
ByVal Y As Long, _
ByVal nWidth As Long, _
ByVal nHeight As Long, _
ByVal hSrcDC As Long, _
ByVal xSrc As Long, _
ByVal ySrc As Long, _
ByVal dwRop As Long) As Long
and I have this on a command button:
BitBlt Q.hDC, 0, 0, 1200, 360, imgSS.hDC, SSQX.Caption, SSQY.Caption, vbSrcCopy
But when I run the program it doesn't do anything. how do i get it to work?
Pete.