Hi i am tryng to change a program i wrote to use richedit 4.1. It compiles but doesnt work...The library was loaded successfully. Yet, the rich edit window just cant be created.
Code:
// rich edit control
InitCommonControls();
if(!LoadLibrary("Msftedit.dll"))
return 0;
GetClientRect(hwnd,&r);
hEditCntl = CreateWindowEx(0,
TEXT("RICHEDIT_CLASS"),
NULL,
WS_CHILD |WS_VISIBLE | WS_HSCROLL | WS_VSCROLL |
ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE,
0,
0,
r.right-r.left,
r.bottom-r.top,
hwnd,
(HMENU)ID_EDIT,
hinst,
NULL);
if(!hEditCntl)
MessageBox(hwnd,"Not working","Not working",MB_ICONEXCLAMATION );