forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


API Help

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jun 06, 2003 8:55 pm    Post subject: API Help Reply with quote

Quote:
An application sends a BM_SETIMAGE message to associate a new image (icon or bitmap) with the button.

BM_SETIMAGE
wParam = (WPARAM) fImageType; // image-type flag
lParam = (LPARAM) (HANDLE) hImage; // handle of the image


Parameters

fImageType

Value of wParam. Specifies the type of image to associate with the button. This parameter can be one of the following values:
IMAGE_BITMAP
IMAGE_ICON



hImage

Value of lParam. Identifies the image to associate with the button.



Return Values

The return value is the handle of the image previously associated with the button, if any; otherwise, it is NULL.


I have a couple of questions:


    1.) Does this put an image on a button like on the VDS compiler
    2.) How do I use this? I think Mac's VDSAPI.DLL can do this.


Thanks in advance. Very Happy

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sat Jun 07, 2003 10:51 pm    Post subject: Reply with quote

sorry ff...haven't got a clue about that api as i have never used it Sad

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sun Jun 08, 2003 1:25 pm    Post subject: Reply with quote

Hi FF,
Sorry but I don't think Mac's vdsapi.dll actually sends the messages. I think it only returns information about the API message in question. Anyway I have not tried Mac's DLL so I cannot really comment on what it can do and cannot. I do know for sure that Gadget has the ability to do what you are wanting to do with the BM_SETIMAGE. To use the BM_SETIMAGE you must first get a handle to the image and then pass that handle to the BM_SETIMAGE message. You can look at some of my examples for the LoadImage API function which can load a image from a file into memory and it returns a handle to that image which is compatible with the BM_SETIMAGE function. Also I think you have to change the style of the button as well to make this work... It has been awhile since I have used this API message and I cannot say for sure.
Also there is the bitbtn element in VDS but I am sure you already know this...

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Jun 08, 2003 1:32 pm    Post subject: Reply with quote

No more help needed. Thanks all. Smile
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help 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
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group