//以下在DialogInit消息中写
SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE,    GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE)^0x80000); this->SetTimer(245,100,NULL);
void CLayerWndDlg::OnTimer(UINT_PTR nIDEvent)
{
    // TODO: 在此添加消息处理程序代码和/或调用默认值
    static int i = 0;
    if(nIDEvent == 245)
    {
        SetLayeredWindowAttributes(0,i,2);
        i+=10;
        if(i == 250)
        {
            SetLayeredWindowAttributes(0,255,2);    
            this->KillTimer(nIDEvent);
        }
    }
    CDialogEx::OnTimer(nIDEvent);
}

 

相关文章:

  • 2021-10-08
  • 2022-02-11
  • 2022-12-23
  • 2021-04-24
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-13
  • 2021-04-25
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-12-30
相关资源
相似解决方案