怎么使对话框窗口aways on top以及怎样干掉其在任务栏上的按钮和在任务列表里的显示??

解决方案 »

  1.   

    1. aways on top
    建立名为My的对话框工程
       BOOL CMyDlg::OnInitDialog()
        {
             CDialog::OnInitDialog();         // Add "About..." menu item to system menu.         SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);//这句
             // TODO: Add extra initialization here
      
             return TRUE;  // return TRUE  unless you set the focus to a control
        } 2. 干掉其在任务栏上的按钮
    加上WS_EX_TOOLWINDOW
    去掉WS_EX_APPWINDOW