I am creating a program in C that should allow a richedit window to be created and shown.
To do this, I have a function.
Code:
HWND richedit_creater(double h,double w,HWND hwnd,PCHAR text)
{
HANDLE r_lib = LoadLibrary("RICHED32.DLL");
HWND r_hwnd = CreateWindowEx(WS_CHILD,RICHEDIT_CLASS,
text,1,0,0,(int)h,(int)w,hwnd,(HMENU)0,
(HINSTANCE)GetWindowLong(hwnd,GWL_HINSTANCE),
NULL);
return r_hwnd;
}
It compiles fine, and I get no errors. But when I run it, even when simply calling it from a console-app main(), it runs but the window does not does not ever appear. I have tried ShowWindow, GetLastError returns 0...
I'm a bit confused.
Could anyone help?
Thanks,
-The_Goat();