I created a button that has a bitmap on it for my window using the following.

____________________________________________________
invoke CreateWindowEx,NULL, ADDR ButtonClassName,ADDR ButtonText,\
WS_CHILD or WS_VISIBLE or BS_DEFPUSHBUTTON or BS_PUSHLIKE or BS_BITMAP,\
64,110,150,40,hWnd,ButtonID,hInstance,NULL
mov hwndButton,eax
invoke LoadBitmap,hInstance,30
mov hBitBtnBmp,eax
invoke PostMessage,hwndButton,BM_SETIMAGE,IMAGE_BITMAP,hBitBtnBmp
___________________________________________________


What i want to know is there a way to make the button invisible and still have the bitmap show and act as the button.If anyone can help or point me to some code snippets i would be indebted.

thanx

:confused:
Posted on 2001-09-03 15:19:16 by titan
I think you could use a static control filled with a bitmap and catch mouse clicks on it. Instead, if you want those buttons that rise when mouse cursor is over them you have to write you owner draw button, or, simplier, use a small flat toolbar with a single button in it.
Posted on 2001-09-03 15:29:11 by LuHa
Check the attachment :)
If that's what you need, then re-create the example using a button.
Btw i think Hutch has included an example like this one with the MASM package.

Hope that helps.


Latigo
Posted on 2001-09-03 15:52:23 by latigo
thanks guys
I'll check that file out
Posted on 2001-09-03 16:04:12 by titan