|
-
Oct 13th, 2000, 10:34 AM
#1
Thread Starter
Frenzied Member
1.How do i set the picture of a button when i set its style to bitmap.
2.What message is sent to my window when the user clicks an icon put in a picture box in my window.How can i react to that event.I know a WM_LBUTTONDOWN is sent but how can i know if it was pressed over the icon.
[Edited by Vlatko on 10-13-2000 at 01:02 PM]
-
Oct 13th, 2000, 11:27 AM
#2
Just posting cuz id like to know too.
-
Oct 13th, 2000, 02:53 PM
#3
I'm not sure if you can because it's drawn on to it's DC, however, the LParam argument of WM_LBUTTONDOWN will check the X and Y positions of the mouse, hence if you know what the coordinates of the Picture is, then you can check if the coordinates of the mouse is in it.
The LOWORD of lParam is the X position and the HIWORD is the Y position.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|