When I call this function when a button is pressed it freezes. Will this get the mouse coordinates like it is intended to do?
Code:void getmousepos() { POINT p; for(;;) GetCursorPos(&p); SendMessage(editbxX, WM_SETTEXT,0,(LPARAM) p.x); SendMessage(editbxY, WM_SETTEXT,0,(LPARAM) p.y); }





Reply With Quote