MCPcopy Create free account
hub / github.com/cinience/RedisStudio / SetClientRect

Method SetClientRect

DuiLib/Control/UIRichEdit.cpp:863–873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

861}
862
863void CTxtWinHost::SetClientRect(RECT *prc)
864{
865 rcClient = *prc;
866
867 LONG xPerInch = ::GetDeviceCaps(m_re->GetManager()->GetPaintDC(), LOGPIXELSX);
868 LONG yPerInch = ::GetDeviceCaps(m_re->GetManager()->GetPaintDC(), LOGPIXELSY);
869 sizelExtent.cx = DXtoHimetricX(rcClient.right - rcClient.left, xPerInch);
870 sizelExtent.cy = DYtoHimetricY(rcClient.bottom - rcClient.top, yPerInch);
871
872 pserv->OnTxPropertyBitsChange(TXTBIT_VIEWINSETCHANGE, TXTBIT_VIEWINSETCHANGE);
873}
874
875BOOL CTxtWinHost::SetSaveSelection(BOOL f_SaveSelection)
876{

Callers 1

SetPosMethod · 0.80

Calls 4

DXtoHimetricXFunction · 0.85
DYtoHimetricYFunction · 0.85
GetPaintDCMethod · 0.80
GetManagerMethod · 0.80

Tested by

no test coverage detected