| 1633 | } |
| 1634 | |
| 1635 | void 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 | |
| 1659 | HRESULT CRichEditUI::TxSendMessage(UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *plresult) const |
| 1660 | { |
nothing calls this directly
no test coverage detected