争怎路由网:是一个主要分享无线路由器安装设置经验的网站,汇总WiFi常见问题的解决方法。

鼠标3击的完成

时间:2024/7/12作者:未知来源:争怎路由网人气:

void click_3()
{
}

BOOL CDlgApp::PreTranslateMessage(MSG* pMsg)
{

    static short flag=0,flagtime=0;
    UINT time;
    static MSG tempMsg;
    static DWORD t1,t2,t3=20000;
    time=GetDoubleClickTime();
    t2=GetTickCount();
    if((pMsg->message == WM_LBUTTONDBLCLK )¦¦(pMsg->message ==WM_LBUTTONDOWN))
    {
        if(pMsg->message == WM_LBUTTONDBLCLK )
        {
            t1=GetTickCount();
            flag=1;flagtime=1;
            tempMsg.hwnd =pMsg->hwnd;
            tempMsg.message=pMsg->message;
            tempMsg.lParam=pMsg->lParam;
            tempMsg.wParam=pMsg->wParam;
            return true;
        }
        if(pMsg->message == WM_LBUTTONDOWN)
        {
            if(flag==1)
            {
                t2=GetTickCount();
                t3=t2-t1;
                if(t3<time)
                {
                    click_3();
                    flag=0;flagtime=0;
                    return true;
                }
                flag=0;
            }
        }

    }else{
        if(flagtime)
        {
            t3=t2-t1;
            if(t3>time)
            {
                flagtime=0;
                return CWinApp::PreTranslateMessage(&tempMsg);
            }
        }
    }
    return CWinApp::PreTranslateMessage(pMsg);

}

关键词:鼠标3击的完成




Copyright © 2012-2018 争怎路由网(http://www.zhengzen.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版