You must handle the mouse messages. For that you must overwrite the message handler in your window. Here is the Microsoft
documentation for the mouse messages. You must fetch the click coordinates and than check it with the coordinates of your picture.