Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CRect

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I would like to dynamically draw the group box around
the edit control/s. So I have used the foll code to get
the dimension of the edit box(rectangle) into CRect. But it is not returning the right values.

Code is:
CEdit m_edit;
CRect Rect;
m_edit.GetRect(Rect);
:
:
.
can anybody throw some light on this issue?
Thanks
 
I think the problem in in Absolute/Relative coordinate. Use ScreenToClient/ClientToScreen for each point. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top