This if statement is the easiest way I know to determine if a rectangle-shaped item on screen was clicked on.
x and y are the mouse-click points that you got from WM_LBUTTONDOWN's lparam LOWORD() and HIWORD()
1 2 3 4 5 6 7
static RECT pic; //some rectangle that you define earlier in the program that represents
//where the picture is on screen
if(x > pic.left && x < pic.right && y > pic.top && y < pic.bottom)
//mouse clicked on pic's rectangle.
How you define 'pic' is going to depend on how you set the picture to your screen. Use the points in 'pic' as your sizes in your StretchBLT() function. If you want help with that then I would need to see some of your code. I usually define pic in my case WM_SIZE: process with something like