How do I use RichEdit?

Hi.

I am writing a Script Editor for my games Scripting Engine, and I need some help. Currently I am using an "Edit Control" or so I have been told. I am creating the text window as follows

[code]
hwndEdit = CreateWindow ("edit", NULL,
WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL |
WS_BORDER | ES_LEFT | ES_MULTILINE |
ES_NOHIDESEL | ES_AUTOHSCROLL | ES_AUTOVSCROLL,
0, 0, 0, 0,
hwnd, (HMENU) EDITID, hInst, NULL) ;

[/code]



This creates the window fine, but I cannot change the colour, cause the Edit Control only supports black text. I need to use a RichEdit Control, but dont honsetly have a clue how to do this. If you can help it would be greatly appreciated.

Thanks
Ciaran

Comments

  • : Hi.
    :
    : I am writing a Script Editor for my games Scripting Engine, and I need some help. Currently I am using an "Edit Control" or so I have been told. I am creating the text window as follows
    :
    : [code]
    : hwndEdit = CreateWindow ("edit", NULL,
    : WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL |
    : WS_BORDER | ES_LEFT | ES_MULTILINE |
    : ES_NOHIDESEL | ES_AUTOHSCROLL | ES_AUTOVSCROLL,
    : 0, 0, 0, 0,
    : hwnd, (HMENU) EDITID, hInst, NULL) ;
    :
    : [/code]
    :
    :
    :
    : This creates the window fine, but I cannot change the colour, cause the Edit Control only supports black text. I need to use a RichEdit Control, but dont honsetly have a clue how to do this. If you can help it would be greatly appreciated.
    :
    : Thanks
    : Ciaran
    :
    [blue]Go here:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/functions_by_category.asp

    and click on [b]Rich Edit Control[/b].[/blue]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion