im using win32 to get mouse events and coordinates .. this is my code :
LRESULT CALLBACK MsgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
switch( msg )
{
case WM_LBUTTONDOWN:
int x = LOWORD( lParam ) ;
int y = HIWORD( lParam ) ;
app.setTarget( x, y );
return 0;
};
}
but for some reason the x and y returned from the lParam are wrong ..
thx for any reply
