well I am using a mouse in a tic tac toe game, I am unsure of how the x and y values in this piece of code operate.
LRESULT
CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
int x=LOWORD(lParam);
int y=HIWORD(lParam);
switch(wParam)
{
case VK_ESCAPE:
{
PostQuitMessage(0);
return 0;
}
break;
}
switch(message)
{
case WM_LBUTTONDOWN:
{
display_text_x(x,y);
return 0;
}
break;
case WM_RBUTTONDOWN:
{
display_text_o(x,y);
return 0;
}
break;
case WM_DESTROY:
{
PostQuitMessage(0);
return 0;
}
break;
}
return DefWindowProc (hWnd, message, wParam, lParam);
}
do the values for x and y correspond to the tip of the mouse pointer?