|
-
Feb 6th, 2000, 05:19 AM
#1
Thread Starter
Junior Member
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
-
Feb 6th, 2000, 06:21 AM
#2
Addicted Member
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
-
Feb 7th, 2000, 01:25 AM
#3
Thread Starter
Junior Member
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
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
|