469,569 Members | 1,577 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,569 developers. It's quick & easy.

RICHEDIT / InitCommonControls

Hi
I'm trying to create an application with a RichEdit control, I found that
CreateWindow always returns a null hWnd unless I call
LoadLibrary("riched20.dll") first (the error code from GetLastError is 1407 -
couldn't find class). This is even when I link with comctl32.lib and call
InitCommonControls.
Do I HAVE to use a DLL if I want to use a richedit control, and more
importantly, do I know that it will be on the target machine, and if not can
I redistribute this DLL?

Further, I think it might be something to do with the the fact that
InitCommonControls has been replaced by InitCommonControlsEx, which takes a
structure telling it which ones to initialize, but the RICHEDIT doesn't seem
to be one of the ones listed in the flags you can set in this parameter. Does
this mean that in the most recent version of windows, the RICHEDIT has been
chucked out of the common controls suite? If so, what was its offence?
Nov 17 '05 #1
1 2362
See:
http://msdn.microsoft.com/library/de...itcontrols.asp

As far as I know, RichEdit was always in its own dll, and never part of the
comctl32.dll.

/Andreas

"Patty O'Dors" <Pa********@discussions.microsoft.com> wrote in message
news:EA**********************************@microsof t.com...
Hi
I'm trying to create an application with a RichEdit control, I found that
CreateWindow always returns a null hWnd unless I call
LoadLibrary("riched20.dll") first (the error code from GetLastError is 1407 - couldn't find class). This is even when I link with comctl32.lib and call
InitCommonControls.
Do I HAVE to use a DLL if I want to use a richedit control, and more
importantly, do I know that it will be on the target machine, and if not can I redistribute this DLL?

Further, I think it might be something to do with the the fact that
InitCommonControls has been replaced by InitCommonControlsEx, which takes a structure telling it which ones to initialize, but the RICHEDIT doesn't seem to be one of the ones listed in the flags you can set in this parameter. Does this mean that in the most recent version of windows, the RICHEDIT has been chucked out of the common controls suite? If so, what was its offence?

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by murlbrown | last post: by
1 post views Thread by Peter Taylor | last post: by
1 post views Thread by P | last post: by
10 posts views Thread by Patty O'Dors | last post: by
reply views Thread by brett forsgren via .NET 247 | last post: by
reply views Thread by murlbrown | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.