Code:
case WM_LBUTTONDOWN:
//MEMORY
      if(LOWORD(wParam) == BN_CLICKED && (HWND)lParam == board[x2][y2])
i also tried

if ((HWND)lParam == board[x2][y2])

but niether works when I click on board[x2][y2] (its a static control)

the wm_lbuttondown is working, i checked with a messagebox, but a messagebox won't go inside my if....this should be easy, but im stumped sorry about the stupid question