worker018
asked on
Obtain the offset (position) of static control
Hello.
To obtain the offset of static control I use GetClientRect function.
But This returns only height and weidth of the target conrol.
I heard GetWindowRect function returns the position of static control, but It returns window refernced position, how can I get position of
static control refernced client window?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Alternatively, get teh window (screen) coords of the control and convert to client coord of the parent.