Child Windows
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
how do i get a cild windows position relative to its parents position? in a dialog application
-
how do i get a cild windows position relative to its parents position? in a dialog application
This code will retrieve the position of the child in client co-ordinates of the parent (i.e. top-left corner of the parent window is location 0,0). CRect rc; pChild->GetWindowRect( rc ); pChild->GetParent()->ScreenToClient( rc ); Dave http://www.cloudsofheaven.org