RICHEDIT / InitCommonControls

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
Back
Top