I derived a class called CAnimWnd from CWnd, registered the window with the call to AfxRegisterWndClass() and then tried to call CreateEx():
BOOL CAnimWnd::Create(const char* pszTitle,DWORD dwStyle, CWnd* pParent, int x, int y, int cx, int cy)
const char* pszClassName
= AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW);
return CWnd::CreateEx(0, pszClassName, pszTitle, dwStyle, x, y, cx, cy, NULL, NULL);
somehow the CWnd::CreateEx() returns false, and the window is not created. For what reasons does the CreateEx() func. returns false?
Any comment is appreciated, working answer receives an A.