   rich edit controls
  Whenever I try to use the RICHEDIT_CLASS style, CreateWindow returns NULL. I tried calling InitCommonControls but it had no effect... Also, the ES_SUNKEN style always gives a compile error, and so does RICHEDIT_CLASS without the quotes around it. What on Earth am I doing wrong? 
  Try making the class name "RichEdit" or "RichEdit32". ;  RichEdit does not work either.[edit] I am running Windows XP with the latest service pack.   [edited by - Raloth on February 18, 2004 10:21:06 PM];  Before creating a rich edit you need to use LoadLibrary() to load the appropriate DLL. Riched32.dll is for rich edit 1.0 controls (for programs made for Win95). Riched20.dll is for version 2.0 and 3.0 (3.0 is for NT based OSs). Riched20.dll can be redistributed to Win95 so this DLL is probably the one you want.To use ES_SUNKEN you have to set up the appropriate defines so that the Win32 API does not remain compatible with Win9x (probably _WIN_NT).   Colin Jeanne | Invader''s Realm"I forgot I had the Scroll Lock key until a few weeks ago when some asshole program used it. It even used it right" - Conner McCloud ;  Actually, I was wrong about ES_SUNKEN. You do not need to define anything, just include richedit.h.   Colin Jeanne | Invader''s Realm"I forgot I had the Scroll Lock key until a few weeks ago when some asshole program used it. It even used it right" - Conner McCloud 