News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

static control general question

Started by Trope, September 23, 2005, 05:53:44 PM

Previous topic - Next topic

Trope

Am I understanding this correctly - let's say I have numerous small bitmaps, buttons for example. Do I need to create a static control behind these bitmaps in order to check for a click event? Or is that just the preferred way? Or neither. Ultimately, I am learning ( or want to ) how to have numerous buttons that I can attach a click function to.

Thanks for any clarification on this matter,

Trope.

Ps. Been to MSDN. Still a little unclear.

petezl

It would be easiest to stick the bitmaps on the buttons using BS_BITMAP style!

Peter.
Cats and women do as they please
Dogs and men should realise it.

Trope

Can my button be of any size, and shape? If so, that sure would be ideal.

What if my button was a bitmap of a diamond? Could that work?

petezl

The background form of all bitmaps and buttons are rectangular but can be any size!
Large bitmaps on buttons, especially if you use one image for Button-up and another for button-down tends to make the button sticky on slower machines.
To hide the button shape try BS_FLAT

Peter.
Cats and women do as they please
Dogs and men should realise it.

jojo

If you need non-rectangular shapes, try creating regions with RgnHandle=CreatePolygonRgn(..), then check if mousekey is down and where for the created regions with PtInRegion(RgnHandle,X,Y)