Hi,
could you tell me how can I write text in a window?
I've created a derived class of CMDIChild (MyWindow.cpp, MyWindow.h)
and I want to write in
that window but I don't know how.
I've prove with this:
but pContext is NULL, what am I doing wrong?
BOOL MyWindow::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext*
pContext)
{
CWnd* ReprodView = NULL;
//At this point pContext is NULL!!!!
if (!CMDIChildWnd::OnCreateClient(lpcs, pContext))
return FALSE;
//At this point pContext is NULL!!!!
//MyWindowView is derived from CView
pContext.m_pNewViewClass=RUNTIME_CLASS(MiVentanaVi ew);
if (!(ReprodView=CreateView(pContext)))
{
TRACE0("Failed to create new view\n");
return FALSE;
}
return TRUE;
SetActiveView((CView*)ReprodView);
}
Thanks in advance.
Davinia.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com