//it will be called,When the window size changes. //OnSize will call it. void CxRichEdit::CxSetRect(RECT rc,bool bInvalidate) { CxAncestor::CxSetRect(rc,bInvalidate); IFISNULLSTOP(m_pTwhost); if(xScrollVert.IsVisible()) { CxRect rcScroll(rc.right-dwScrollWidth,rc.top,rc.right,rc.bottom); xScrollVert.CxSetRect(rcScroll,false); rc.right-=dwScrollWidth; } int ixMargins = GET_X_LPARAM(lpMargins); rc.left+=ixMargins; //here,i want to chang the rect of ITextHost. //ITextHost m_pTwhost m_pTwhost->SetClientRect(&rc,true); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)