Thread: Rich edit help.

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    Angry Rich edit help.

    I have allready googled it, shearched it here on this board, looked in my books, and yet to no prevail! So this is my last hope: How do you create a rich edit box window?

    Thanks.

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    Did you look here.

    Try:
    Code:
    //...
    //call once
    if(!LoadLibrary("riched20.dll")) //newest ver is msftedit.dll
        MessageBox(NULL,"Could not load riched20.dll!","Error!",MB_OK|MB_ICONEXCLAMATION);
    //...
    HWND riched = CreateWindowEx(0,
                                   RICHEDIT_CLASS,
                                   "",
                                   WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_HSCROLL|         
                                   ES_MULTILINE|ES_AUTOHSCROLL,
                                   5,
                                   35,
                                   GetSystemMetrics(SM_CXSCREEN)/2,
                                   GetSystemMetrics(SM_CYSCREEN)-235,
                                   hwnd,NULL,hinst,0);
    //...
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Thanks, I got it now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. line number on a rich edit control
    By rakan in forum Windows Programming
    Replies: 1
    Last Post: 02-18-2008, 07:58 AM
  2. rich edit 4.1 is giving me a head-ache
    By master5001 in forum Windows Programming
    Replies: 3
    Last Post: 07-01-2005, 01:21 PM
  3. How the rich get rich [Long]
    By nickname_changed in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 05-05-2005, 10:36 PM
  4. newbie to rich edit, cant get it to work
    By hanhao in forum Windows Programming
    Replies: 1
    Last Post: 03-24-2004, 10:54 PM
  5. Rich edit
    By Garfield in forum Windows Programming
    Replies: 10
    Last Post: 07-10-2002, 04:08 PM