POINT cPos; int menuX = 20, menuY = 100, offsetX, offsetY;
if(GetAsyncKeyState(VK_LBUTTON) < 0)
{
GetCursorPos(&cPos);
if(cPos.x > menuX - 10 && cPos.x < menuX + 125 && cPos.y > menuY - 10 && cPos.y < menuY + 455){
if(!isDragging){
offsetX = cPos.x - menuX;
offsetY = cPos.y - menuY;
isDragging = true;
}
}
} else {
isDragging = false;
}
}
if(isDragging){
menuX = cPos.x - offsetX;
menuY = cPos.y - offsetY;
}

if (YOURFKHACK == 1)
{
if(GetAsyncKeyState(VK_LBUTTON) < 0)
{
GetCursorPos(&cPos);
if(cPos.x > menuX - 10 && cPos.x < menuX + 125 && cPos.y > menuY - 10 && cPos.y < menuY + 455){
if(!isDragging){
offsetX = cPos.x - menuX;
offsetY = cPos.y - menuY;
isDragging = true;
}
}
} else {
isDragging = false;
}
}
if(isDragging){
menuX = cPos.x - offsetX;
menuY = cPos.y - offsetY;
}