creating clickable “buttons” c++
问题 hey i am trying to basically just make a button in my little console application which can be pressed. here's a snippet of what i use to get the cursor location if (GetKeyState(VK_LBUTTON) < 0) { { POINT p; if (GetCursorPos(&p)) { cout<<"\nSCREEN\nx coord->"; cout<<p.x; cout<<"\ny coord->"; cout<<p.y; } SetConsoleTitle("paint"); HWND hWnd; hWnd = FindWindow(NULL, "paint"); if (ScreenToClient(hWnd, &p)); { cout<<"\n\nWINDOW\nx coord->"; cout<<p.x; cout<<"\ny coord->"; cout<<p.y; } int pwx; int