I have written an MFC dialog based application which is launched by some another application. For now, I have not added any code. It is just the default files that I got. Th
You must hide the dialog from the inside.
Here is the code
BOOL CMyAppDlg::OnInitDialog()
{
BOOL result = CDialogEx::OnInitDialog();
this->ShowWindow(SW_HIDE);
return result; // return TRUE unless you set the focus to a control
}
There is another method with a sentinel value, YMMV.