How to change bitmap after click on it ?

I would like to change bitmap after click on it by left mouse button.
How should I do it ?
I wrote such a code:

case WM_LBUTTONDOWN:
if ((HBITMAP)lParam == bitmapa)
{
turn = true;
}
break;

Where "bitmapa" is handle for bitmap and "turn" is variable.
If this variable is true , program should paint other bitmap in WM_PAINT.
It doesn't happen.
If the bitmap convers the whole window (or control), just test that the click is on that window.

If not, you need to additionally check that the click is in the bitmap region.
I don't know how should I do it.
Topic archived. No new replies allowed.