📅  最后修改于: 2022-03-11 14:44:52.087000             🧑  作者: Mango
void GetWindowPos( int *x, int *y ) {
RECT rect = { NULL };
if( GetWindowRect( GetConsoleWindow(), &rect ) ) {
*x = rect.left;
*y = rect.top;
}
}