Answers for "get window position"

C++
1

get window position

void GetWindowPos( int *x, int *y ) {
    RECT rect = { NULL };
    if( GetWindowRect( GetConsoleWindow(), &rect ) ) {
        *x = rect.left;
        *y = rect.top;
    }
}
Posted by: Guest on August-05-2021

Code answers related to "get window position"

Browse Popular Code Answers by Language