隐藏任务栏图标后,程序标题在Alt+Tab中无法显示
按照网上的教程,先在app中加入了
HICON hIcon = LoadIcon(IDR_ICON); CDialog* pd=new CDialog; pd->Create(IDD_DIALOG1); //IDD_DIALOG1是一个不显示的对话框资源ID pd->SetWindowText("123"); pd->SetIcon(hIcon, TRUE); CNotifyIcon_TestDlg dlg(pd); m_pMainWnd = &dlg; int nResponse = dlg.DoModal();
ModifyStyleEx(WS_EX_APPWINDOW,0);