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

Method DoInit

DuiLib/Control/UIRichEdit.cpp:1635–1657  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1633}
1634
1635void CRichEditUI::DoInit()
1636{
1637 if(m_bInited)
1638 return ;
1639
1640 CREATESTRUCT cs;
1641 cs.style = m_lTwhStyle;
1642 cs.x = 0;
1643 cs.y = 0;
1644 cs.cy = 0;
1645 cs.cx = 0;
1646 cs.lpszName = m_sText.GetData();
1647 CreateHost(this, &cs, &m_pTwh);
1648 if( m_pTwh ) {
1649 m_pTwh->SetTransparent(TRUE);
1650 LRESULT lResult;
1651 m_pTwh->GetTextServices()->TxSendMessage(EM_SETLANGOPTIONS, 0, 0, &lResult);
1652 m_pTwh->OnTxInPlaceActivate(NULL);
1653 m_pManager->AddMessageFilter(this);
1654 }
1655
1656 m_bInited= true;
1657}
1658
1659HRESULT CRichEditUI::TxSendMessage(UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *plresult) const
1660{

Callers

nothing calls this directly

Calls 7

CreateHostFunction · 0.85
TxSendMessageMethod · 0.80
GetTextServicesMethod · 0.80
OnTxInPlaceActivateMethod · 0.80
AddMessageFilterMethod · 0.80
GetDataMethod · 0.45
SetTransparentMethod · 0.45

Tested by

no test coverage detected