问题描述
我创建了一个应用程序sdi,但编辑器部分将是丰富的编辑控件。我从CWnd我的丰富编辑控件派生。
class CRichEditControl50W:public CWnd
{
DECLARE_DYNAMIC(CRichEditControl50W)
}
i写了我所有的函数,如:
void SetSel50W(long nStartChar,long nEndChar);
BOOL SetDefaultCharFormat50W(DWORD dwMask,COLORREF crTextColor,DWORD dwEffects,LPTSTR szFaceName,LONG yHeight,COLORREF crBackColor);
void SetTextTo50WControl(CString csText,int nSTFlags,int nSTCodepage) ;
void LimitText50W(int nChars);
void SetOptions50W(WORD wOp,DWORD dwFlags);
DWORD SetEventMask50W(DWORD dwEventMask);
void GetTextRange50W(int ncharrMin,int ncharrMax);
我怀疑如何从该丰富的编辑控件获取文本。它是sdi不是对话?
I created an application sdi but the editor part will be rich edit control. i derived from CWnd my rich edit control.
class CRichEditControl50W : public CWnd
{
DECLARE_DYNAMIC(CRichEditControl50W)
}
i wrote all my functions own like:
void SetSel50W(long nStartChar, long nEndChar);
BOOL SetDefaultCharFormat50W(DWORD dwMask, COLORREF crTextColor, DWORD dwEffects, LPTSTR szFaceName, LONG yHeight, COLORREF crBackColor);
void SetTextTo50WControl(CString csText, int nSTFlags, int nSTCodepage);
void LimitText50W(int nChars);
void SetOptions50W(WORD wOp, DWORD dwFlags);
DWORD SetEventMask50W(DWORD dwEventMask);
void GetTextRange50W(int ncharrMin, int ncharrMax);
my doubt is how to get the text from that rich edit control .it is sdi not dialog ?
推荐答案
这篇关于在sdi rich编辑中有疑问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!