zoukankan      html  css  js  c++  java
  • VC 任务栏图标闪烁

    像QQ来消息时的,图标闪烁效果

    将如下代码添加到Timer响应函数中

    else if (nIDEvent == 1)
        {// 任务栏图标闪烁
            if (this != GetForegroundWindow())
            {
            ////    this->ShowWindow(SW_RESTORE);
            ////    MoveWindow(&m_rect);
                HWND hCurwnd = NULL;
                hCurwnd = ::GetForegroundWindow();
                DWORD threadID = ::GetCurrentThreadId();
                DWORD threadprocessid = ::GetWindowThreadProcessId(hCurwnd, &threadID);
                ::AttachThreadInput(threadID, threadprocessid, TRUE);
                this->SetForegroundWindow();
                ::AttachThreadInput(threadID, threadprocessid, FALSE);
            }
        }

  • 相关阅读:
    大数板子
    数位dp
    BM算法
    牛客小白月赛7
    划分树
    可持久化线段树
    素数
    一些数学公式
    线性基
    ConcurrentHashMap 并发HashMap原理分析
  • 原文地址:https://www.cnblogs.com/nightnine/p/7503507.html
Copyright © 2011-2022 走看看