VS2005 VC6.0 RichEdit 高版本使用!!

 
Version Ships ('ed) with dll name
1.0 Windows 95/98/ME/NT riched32.dll
1.0 Exchange 4.0 for Windows 3.1/WFW richedit.dll
2.0 Office 97, Windows NT/98 riched20.dll
2.1 BiDi Office 97 riched20.dll
2.5 Windows CE, Pocket Word riched20.dll
3.0 Office 2000, Windows ME/2000/XP riched20.dll
1.0 emulator Office 2000, Windows 2000/XP/Vista riched32.dll
3.1 Windows Server 2003, Vista riched20.dll
3.5 Windows CE, eBooks ebriched.dll
4.0 Office XP riched20.dll
4.1 Windows XP SP1, Tablet, Vista msftedit.dll
5.0 Office 2003 riched20.dll
5.1 Windows CE, Pocket Word riched20.dll
6.0 Office 2007, Encarta Math Calculator riched20.dll

http://blogs.msdn.com/b/murrays/archive/2006/10/14/richedit-versions.aspx

以上是RichEdit的各个版本!!

对话框方式:
1.在对话框上放置一个Rich Edit 2.0控件;
2.以文本方式打开工程.rc文件,找到描述该控件的地方,如下所示:

1
2
3
4
5
6
7
8
CAPTION "CRich6"
FONT 9, "宋体", 0, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "确定",IDOK,263,7,50,16
    PUSHBUTTON      "取消",IDCANCEL,263,25,50,16
    CONTROL         "",IDC_RICHEDIT21,"RichEdit20w",ES_MULTILINE | ES_WANTRETURN | WS_VSCROLL | WS_TABSTOP,7,33,168,137
END
3.把" RichEdit20W"改成" RICHEDIT50W",保存文件。切换到VS,提示重新加载资源文件,确定即可。

4.在App中 HINSTANCE m_hinstance;


 

CCRich6App::CCRich6App()
{
	CoInitialize(NULL);
	m_hinstance = LoadLibrary(_T("msftedit.dll"));//
}
CCRich6App::~CCRich6App()
{
	if (m_hinstance)
	{
		FreeLibrary(m_hinstance);
	}
}


 App::InitInstance()

{

AfxInitRichEdit2();

}

到此为止就实现了RichEdit高版本的转换。。

大家可以Spy++ 来查看RichEdit!!

你可能感兴趣的:(Math,windows,server,null,Office,Exchange)