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;
}
|