Window Position

02/08/2013 15:14 max982#1
Hi, i wanted to know how can i get the x/y poisition a window, could anyone help me please? thanks
02/08/2013 17:32 adeilson123#2
Quote:
Originally Posted by max982 View Post
Hi, i wanted to know how can i get the x/y poisition a window, could anyone help me please? thanks

to get the rect of the current window:
Code:
GetWindowRect();
exemple:
Code:
        CPoint pt;
        CRect rect	= GetWindowRect();
        pt.x = rect.left; //or rect.right
        pt.y = rect.top; //or rect.bottom
you can edit it according to your need ^^