As far as changing the word wrap stuff. That is quite simple, actually. It took me a bit of searching some months back and discovered that the m_nWordWrap member of a CRichEditView has 3 possible values:
Code:
WrapNone, WrapToWindow, WrapToTargetDevice
Set the member variable m_nWordWrap to the new value then call:
As far as the right click context menu, check out this function:
Code:
virtual HMENU GetContextMenu(WORD seltype, LPOLEOBJECT lpoleobj,CHARRANGE* lpchrg);
Here is an example of this function overridden:
Code:
HMENU CLogViewView::GetContextMenu(WORD seltype, LPOLEOBJECT lpoleobj,CHARRANGE* lpchrg)
{
CRichEditCntrItem* pItem = GetSelectedItem();
if (pItem == NULL || !pItem->IsInPlaceActive())
{
CMenu menuText;
menuText.LoadMenu(IDR_EDIT_MENU);
CMenu* pMenuPopup = menuText.GetSubMenu(0);
menuText.RemoveMenu(0, MF_BYPOSITION);
return pMenuPopup->Detach();
}
return NULL;
}
However, I just realized this is for a CRichEditView, but not a ctrl. Well, hope it helps somewhat.
*LuckY*