Hi,

I have to create a window on the screen (to show some graphics) and I have to do it without a dialog and decided to create a class derived from cwnd (it has to have a message queue for paint and timers and all that stuff) and gave it a function (which i can call from somewhere else) that does:

int x = CWnd::CreateEx( WS_EX_CONTROLPARENT, NULL, "-", WS_CHILD | WS_VISIBLE, CRect(0,0,200,200), this, 1, 0);

but it doesn't work but returns with False.

could somebody please help me with this ?