Hi guys
A simple question.
I have got a dialog where from resource view I have added a static text
I need to know the position of the static text inside the window
Do you Know a function or method that can help me?
Thanks in advance
Printable View
Hi guys
A simple question.
I have got a dialog where from resource view I have added a static text
I need to know the position of the static text inside the window
Do you Know a function or method that can help me?
Thanks in advance
CStatic::GetWindowRect() would give you the screen co-ordinates of the static control itself. Could you work it out from there?
You could then use ScreenToClient(rect) which converts the rectangle to the windows client coordinates.