hi,
I am a newbie to PPC technology.Along with my learning, I am creating some sample applications.I tried to create one sample application to generate a child window by clicking a button"main" in main window.I followed one modeless sample given with SDK.
the code is :
void CMainDlg::OnMain()
{
// TODO: Add your control notification handler code here
CChilddlg* m_pchild;
m_pchild = NULL;
if(m_pchild == NULL) {
m_pchild = new CChilddlg(this);
if(m_pchild->Create(1,NULL) == TRUE)
GetDlgItem(IDC_MAIN)->EnableWindow(FALSE);
}
else
m_pchild->SetActiveWindow();
}
now m_pchild->Create(1,NULL) is returning false.and my application is returning nothing instead of generating a child window.
can any one please help me.
Thanks in advance,
madhavi