Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Greg K

Rich Edit Controlls

This topic is 5930 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to create a Rich Edit Control in a MDI child window but it doesn't work. The code compiles fine but the class doesn't seem to be registered. I call InitCommonControls() at the beginning of my code and use the following code to try to create the Rich Edit Control.
      
HWND hEdit;
hEdit = CreateWindowEx( NULL, RICHEDIT_CLASS, "", 
WS_CHILD | WS_VISIBLE | ES_DISABLENOSCROLL | ES_MULTILINE | ES_WANTRETURN, 
0, 0, clientRect.right, clientRect.bottom, 
hChildWnd, (HMENU)ID_MDI_CHILD_EDIT, hInstance, NULL);
  
hChildWnd, hInstance and clientRect are all working fine. I have checked to see if the class has been registered with GetClassInfo() and it seems that the class is not registered. Does anyone know how to register it or any other step I am missing? -Greg Koreman [edited by - Greg K on September 16, 2002 1:34:14 AM]

Share this post


Link to post
Share on other sites
Advertisement
Where is the edit window being created? Looking at my mdi+richedit app - I create the edit window from WM_CREATE in MDIChildWndProc.

Share this post


Link to post
Share on other sites
Did you load riched20.dll (or one of the other richedit dll''s depending on the version you want)? Here''s a snip from some of my code:

if (!LoadLibrary("riched20.dll"))
{
ERRORMSG("Error Loading Riched20.dll");
return -1;
}



The hackers must have gotten into the system through the hyperlink!!

Invader''s Realm

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!