Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

get window position

void GetWindowPos( int *x, int *y ) {
    RECT rect = { NULL };
    if( GetWindowRect( GetConsoleWindow(), &rect ) ) {
        *x = rect.left;
        *y = rect.top;
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #window #position
ADD COMMENT
Topic
Name
3+4 =