Search
 
SCRIPT & CODE EXAMPLE
 

CPP

get window position

void GetWindowPos( int *x, int *y ) {
    RECT rect = { NULL };
    if( GetWindowRect( GetConsoleWindow(), &rect ) ) {
        *x = rect.left;
        *y = rect.top;
    }
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: convert string to lpstr 
Cpp :: c++ inline in .cpp and not in header 
Cpp :: cpp std list example 
Cpp :: c++ greatest common divisor 
Cpp :: double to int c++ 
Cpp :: restting a queue stl 
Cpp :: increment c++ 
Cpp :: glew32.dll was not found 
Cpp :: array max and minimum element c++ 
Cpp :: combine two vectors c++ 
Cpp :: how to get the type of a variable in c++ 
Cpp :: how to find 2d vector length cpp 
Cpp :: priority queue c++ 
Cpp :: how to dynamically allocate an array c++ 
Cpp :: c++ array rev pointer 
Cpp :: c++ array size 
Cpp :: filling 2d array with 0 c++ 
Cpp :: sorting using comparator in c++ 
Cpp :: c++ vector resize 
Cpp :: pointer in return function c++ 
Cpp :: how to write hello world in c++ 
Cpp :: Find minimum maximum element CPP 
Cpp :: temperature conversion in c++ 
Cpp :: print two dimensional array c++ 
Cpp :: sum of a matrix c++ 
Cpp :: How do I read computer current time in c++ 
Cpp :: c++ pre-processor instructions 
Cpp :: getline() 
Cpp :: c++ print text 
Cpp :: c++ array pointer 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =