September 10th, 2003, 05:24 PM
ICC_STANDARD_CLASSES doesn't exist...
I am trying create an edit box using the Windows API. Here is the code I'm using:
(Variable decalarations and includes are ommitted, but they are in the original code.) According to MSDN this is the correct wat to do it, but my compiler is telling me ICC_STANDARD_CLASSES isn't defined. It's supposed to be defined in commctrl.h which I did include properly, but it just isn't there. On top of that, the other control classes it mentions for use with those seem to work fine. I've tried this with multiple compilers and the same thing always happens. Does anyone know what the heck is going on here? Also, if you don't know the problem then can you at least reccomend an alternative method for creating an edit box. One thing though, I have to do it without using a recource script.
//Initialize the Edit Control Class
ecc->dwSize = sizeof(LPINITCOMMONCONTROLSEX);
ecc->dwICC = ICC_STANDARD_CLASSES;
MessageBox(NULL, "Edit Box Registration Failed!", "Error!",
MB_ICONEXCLAMATION | MB_OK);
//Create the Edit Box
hwnd_edit = CreateWindowEx(
ES_AUTOVSCROLL | ES_MULTILINE | ES_READONLY,