Connecting Tech Pros Worldwide Forums | Help | Site Map

Rich Edit 2.0 Control can not work in Dialog?

zhang
Guest
 
Posts: n/a
#1: Jun 27 '08
I create a project (base dialog) just use the mouse ,It can work if I do
not add "
Rich Edit 2.0 Control".
and the dialog diappeard after I add it.

why???I can not use "Rich Edit 2.0 Control"
??
other control works OK.



David Lowndes
Guest
 
Posts: n/a
#2: Jun 27 '08

re: Rich Edit 2.0 Control can not work in Dialog?


>I create a project (base dialog) just use the mouse ,It can work if I do
Quote:
>not add "
>Rich Edit 2.0 Control".
>and the dialog diappeard after I add it.
>
>why???I can not use "Rich Edit 2.0 Control"
If you have an MFC application, you need to call AfxInitRichEdit2().

Dave
Mark Salsbery [MVP]
Guest
 
Posts: n/a
#3: Jun 27 '08

re: Rich Edit 2.0 Control can not work in Dialog?


"zhang" <makefriend8@163.comwrote in message
news:#hbiaIHnIHA.5260@TK2MSFTNGP03.phx.gbl...
Quote:
I create a project (base dialog) just use the mouse ,It can work if I do
not add "
Rich Edit 2.0 Control".
and the dialog diappeard after I add it.
>
why???I can not use "Rich Edit 2.0 Control"

If it's not an MFC app, then the docs state:

"It is necessary to call the LoadLibrary function to load Riched32.dll or
Riched20.dll before the dialog is created."

Mark

--
Mark Salsbery
Microsoft MVP - Visual C++

Quote:
??
other control works OK.
>
Closed Thread


Similar .NET Framework bytes