You might be able to use ChildWindowFromPoint.. If your using a static control for your image. If so try filterting WM_LBUTTONDOWN/UP and check if it works. _________________
yeah i tried filtering left button click but it failed
i first defined rectangle that contains the image coordinates
then checked if the cursor's position is somewhere at the rectangle's space
but what's the idea of using childwindowfrompoint ?
when will it be called ?
edit:
i think i got your idea
at the left button message i'll call this api with the current position of the cursor
and if it won't be null so it's at the image's space ?!
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
Posted: Fri Feb 27, 2009 1:36 pm Post subject:
I think you can also place an image on a normal button control (You could use Styles to make the button edge not show) but I'm not sure. (Maybe that's VB or whatever)
For the icon: just include an icon in your resource file and it will automatically become your application's icon.
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 cannot attach files in this forum You can download files in this forum