• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 鼠標三擊的實現

    發表于:2007-07-14來源:作者:點擊數: 標簽:
    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_LBUTTONDBLCL
    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 )&brvbar;&brvbar;(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);

    }

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>