BOOL CClientDemoApp::InitInstance()
{
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
/
DlgLogin pDlg;//在这加自己想默认显示的窗体就可以了
pDlg.DoModal();//
/
return FALSE;//这句是自己添加的 不让他继续运行下面的
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
NET_DVR_Init();
CClientDemoDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
return FALSE;
}
修改C++默认启动窗体
最新推荐文章于 2021-02-16 10:53:51 发布