msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bitmap Handles

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
Lou



Joined: 04 Oct 2007
Posts: 149

PostPosted: Fri Sep 12, 2003 8:10 pm    Post subject: Bitmap Handles Reply with quote

How can I disply a picture in a picture box if all I have is a handle to a
bitmap?
I am getting a handle to a bitmap from another component?

-Lou

Archived from group: microsoft>public>vb>enterprise
Back to top
View user's profile Send private message
Monte Hansen



Joined: 04 Oct 2007
Posts: 78

PostPosted: Tue Sep 16, 2003 4:37 am    Post subject: Re: Bitmap Handles Reply with quote

OleCreatePictureIndirect will do the trick. Try the universal function
below. Note the "SharedImage" parameter, as it sounds like yours might
be.

http://killervb.com/functionjunction.aspx?module=m+common.bas#ImageToIPicture

--
+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+
Monte Hansen - MVP VB
http://KillerVB.com
+|+|+|+|+|+|+|+|+|+|+|+|+|+|+|+

"Lou" wrote in message@tk2msftngp13.phx.gbl...
> How can I disply a picture in a picture box if all I have is a
handle to a
> bitmap?
> I am getting a handle to a bitmap from another component?
>
> -Lou
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group