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?
worker018Asked:
Who is Participating?
 
RONSLOWCommented:
Get the window rect of the control and the parent.  Then get the difference.
0
 
RONSLOWCommented:
Alternatively, get teh window (screen) coords of the control and convert to client coord of the parent.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.