| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Jun 06, 2003 8:55 pm Post subject: API Help |
|
|
| 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.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sat Jun 07, 2003 10:51 pm Post subject: |
|
|
sorry ff...haven't got a clue about that api as i have never used it
Serge _________________
|
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Sun Jun 08, 2003 1:25 pm Post subject: |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jun 08, 2003 1:32 pm Post subject: |
|
|
No more help needed. Thanks all.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|