Is there a header that defines the RICHEDIT_CLASS for a window class?

I know this post belongs in the windows programming section but not many people seem to respond to my posts.

Anyway, I am trying to make a word processor application (using windows API) and i need to include the RICHEDIT_CLASS or the MSFTEDIT_CLASS as the windows class of my child window. But the compiler keeps giving the error "MSFTEDIT_CLASS was not declared in this scope". This error leads me to believe that there must be a header that defines MSFTEDIT_CLASS, or maybe i have to define it myself?

Here is my code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
switch (message)                  /* handle the messages */
    {

    case WM_CREATE:
LoadLibrary ("msftedit.dll");

            /* Creating Child window */
            ChildWindow = CreateWindowEx
                (
                0,                      
                MSFTEDIT_CLASS,         /* THIS IS WHERE THE ERROR IS */
                NULL,                   
                WS_CHILD | WS_VISIBLE | 
                ES_LEFT | ES_MULTILINE |
                ES_AUTOVSCROLL,
                0, 0, 0, 0,             
                handle,                 
                NULL,                  
                (HINSTANCE) GetWindowLong (handle, GWL_HINSTANCE),
                NULL
                );

                ShowWindow (ChildWindow, SW_SHOW);

            return 0;
}



I got the info for MSFTEDIT_CLASS and RICHEDIT_CLASS in https://msdn.microsoft.com/en-us/library/windows/desktop/bb787873%28v=vs.85%29.aspx

The website tells me that MSFTEDIT_CLASS and RICHEDIT_CLASS are already defined in the API, so why does the compiler say it is not defined?
Last edited on
That page also says that RICHEDIT_CLASS is defined in Richedit.h
Thank you
Topic archived. No new replies allowed.