-
Hi, in one of my apps I have a status bar. What I need to do is load a bitmap from my HD into one of the panels, but the bitmap needs to be stretched, as normally it puts the image into the control but it is the actual size of the image. I need the image to be stretched inside the control. Please don't suggest using an image control as I need to use a status control. Understand???
Thanks for your help :)
David Richardson
-
Try StretchBlt!
Public Declare Function StretchBlt Lib "gdi32" Alias "StretchBlt" (ByVal hdc 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 nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
just get a handle to the bitmap and the statusbar and then you can resize you image any copy it to the statusbar
------------------
Razzle
ICQ#: 31429438
-
Thanks Razzle, I'll give it a try. I also have Dan Appleman's book on VB so this *should* shed some light on the function.
Cheers mate ;) :=) :} :]
David Richardson