Thread: CRichEditCtrl Problem

  1. #1
    Registered User
    Join Date
    Jul 2008
    Location
    California
    Posts
    5

    CRichEditCtrl Problem

    I'm trying to make a simple dialog with a rich edit box. It is called from within another class via DoModal() which returns -1, and fails to show the new dialog. If I remove the CRichEditCtrl, the dialog will be created perfectly fine and everything works.

    I have tried to add the edit box programmatically to no avail. It feels like I'm missing some sort of initialization or a dialog setting or library or something. When I use the debugger to investigate I find that CreateDlgIndirect() inside of DoModal() in dlgcore.cpp is returning false, which seems to be the reason nothing is working. If you need any specific information from the debugger I'll be happy to provide it.

    Any help on this would be greatly appreciated. Thanks.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Jul 2008
    Location
    California
    Posts
    5
    Thank you kindly! I figured it was something like that, and I wish my eyes weren't so trained to avoid things like the MSDN "Caution" blocks heh.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  2. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  3. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  4. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM
  5. beginner problem
    By The_Nymph in forum C Programming
    Replies: 4
    Last Post: 03-05-2002, 05:46 PM

Tags for this Thread