1 在APP类InitInstance()里
注释掉:
m_pMainWnd->ShowWindow(SW_SHOW);
2 CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)里加
AfxGetApp()->m_nCmdShow = SW_HIDE;
3 隐藏任务栏图标:
ModifyStyleEx(WS_EX_APPWINDOW,WS_EX_TOOLWINDOW);//隐藏任务栏图标