r00d0034
August 22nd, 2002, 06:18 AM
if i have hwndle (HWND)of parent window and hwndle of child window then how to get the point and rectangle of child window with respect to its parent window ?
|
Click to See Complete Forum and Search --> : help me r00d0034 August 22nd, 2002, 06:18 AM if i have hwndle (HWND)of parent window and hwndle of child window then how to get the point and rectangle of child window with respect to its parent window ? gav_will August 22nd, 2002, 08:20 AM Not exactly sure what you mean or what your attempting to do although its simple enough to get both the parent and child into a CRect if you have their handles ie: CRect clientRect, parentRect; GetClientRect('handle to client', &clientRect); GetClientRect('handle to parent', &parentRect); The rects will contain the points are which they are on the screen as well as their width and height etc. Hope I helped :rolleyes: Good luck with whatever it is! codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved. |