| 1657 | } |
| 1658 | |
| 1659 | HRESULT CRichEditUI::TxSendMessage(UINT msg, WPARAM wparam, LPARAM lparam, LRESULT *plresult) const |
| 1660 | { |
| 1661 | if( m_pTwh ) { |
| 1662 | if( msg == WM_KEYDOWN && TCHAR(wparam) == VK_RETURN ) { |
| 1663 | if( !m_bWantReturn || (::GetKeyState(VK_CONTROL) < 0 && !m_bWantCtrlReturn) ) { |
| 1664 | if( m_pManager != NULL ) m_pManager->SendNotify((CControlUI*)this, DUI_MSGTYPE_RETURN); |
| 1665 | return S_OK; |
| 1666 | } |
| 1667 | } |
| 1668 | return m_pTwh->GetTextServices()->TxSendMessage(msg, wparam, lparam, plresult); |
| 1669 | } |
| 1670 | return S_FALSE; |
| 1671 | } |
| 1672 | |
| 1673 | IDropTarget* CRichEditUI::GetTxDropTarget() |
| 1674 | { |
no test coverage detected