Sorry, I forgot to include the code for where the points come frem. Here is a more complete copy of the code:
LRESULT DoLButtonUpMain (HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
{
POINT pt;
INT cx,cy,nCell=0;
pt.x=LOWORD (lParam);
pt.y = HIWORD (lParam);
if (PtInRect (&rectBoard, pt))
I also tried :
RECT rectBoard = {0,0,10,10};
POINT pt = {2,2};
if(PtInRect(&rectBoard, pt)){
MessageBox (hWnd, TEXT("Up"), szAppName, MB_OK);
}
Still no results.
Thanks for trying!