hi all
i have a dialog application.wherein i want to load another dialog to a particular rectangular portion of parent dialog(by a button click)
i have included the code as follows,but it is not working
parentDlg::Initdialog()
{
childDlg.Create(IDD_CHILD_DLG,this);
childDlg.showWindow(FALSE);
}
parentDlg::OnButtonClick()
{
getclientrect(&rc);
clienttoscreen(&rc);
childDlg.SetWindowPos(FromHandle(m_hWnd),rc.left+100,rc.top+100,120,120,SWP_FRAMECHANGED|SWP_SHOWWINDOW|SWP_NOZORDER);
childDlg.showwindow(true);
}
any idea?
thanks in advance