-
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]
-
Just posting cuz id like to know too.
-
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.