VC中怎么点击OK按钮后显示请稍候再进入另一个对话框

解决方案 »

  1.   

    请稍后这个效果也是个对话框。只不过背景透明了。
    SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE,\
    GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE)^0x80000); SetLayeredWindowAttributes(GetSysColor(COLOR_BTNFACE),10,1);
    这两个函数实现。之后再上面TextOut请稍后(也可以用Label控件),用定时器SetTimer控制,
      

  2.   

    哥。这个函数在哪加啊?
    你帮我看看这段。我刚学上位机。以前是搞下位机的。有点迷糊。。
    void CInit::OnOnCellNgroupctrlInit1(short ncol, short nrow) 
    {//确认
    // TODO: Add your control notification handler code here
    //int nSta[2];
         GetDlgItem(IDC_NGROUPCTRL_INIT6)->EnableWindow(true);
     m_pInit->KillGpsTimer();
    if((Station1<0)||(Station1>MaxStation-1)||(Station2<0)||(Station2>MaxStation-1))
    {
    ::AfxMessageBox("您的起点或终点没有设置,请重新设置");
    return;
    }
    if(m_bJump[Station1]) 
    {
    ::AfxMessageBox("起点站不能被越站");
    return;
    }
    if(m_bJump[Station2]) 
    {
    ::AfxMessageBox("终点站不能被越站");
    return;
    }
    if(Station1==Station2)
    {
    ::AfxMessageBox("起点和终点不能是同一个站点");
    return;
    }