hi all,

i need the width and height of the CDC object so i tried this

CRect rc;
CString str;

m_MemDC.SetBoundsRect(&rc,DCB_SET|DCB_ENABLE);

for ( int i = 0 ; i < 500 ; i+=10 )
{
str.Format("done -%d",i);
m_MemDC.TextOut(0,i,str);
}

m_MemDC.GetBoundsRect(&rc,DCB_ACCUMULATE|DCB_ENABLE );

m_MemDC.GetClipBox(&rc);

i tried to User GetBoundsRect and GetClipBox of CDC but was not able to get the actual
width and height of the CDC.

-GetClipBox get only the ctrl width and height
-GetBoundsREct gets the width and height only if it is less than ctrl width

is there some way to get or it is not possible at all

eagerly waiting for a solution

thanks
rajeev