• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            S.l.e!ep.¢%

            像打了激速一樣,以四倍的速度運轉,開心的工作
            簡單、開放、平等的公司文化;尊重個性、自由與個人價值;
            posts - 1098, comments - 335, trackbacks - 0, articles - 1
              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

            MSDN 中的 MessageLoop

            Posted on 2009-05-01 22:00 S.l.e!ep.¢% 閱讀(322) 評論(0)  編輯 收藏 引用 所屬分類: MulThreads

            int MessageLoop (
            HANDLE* lphObjects, // handles that need to be waited on
            int cObjects // number of handles to wait on
            )
            {
            // The message loop lasts until we get a WM_QUIT message,
            // upon which we shall return from the function.
            while (TRUE)
            {
            // block-local variable
            DWORD result ;
            MSG msg ;

            // Read all of the messages in this next loop,
            // removing each message as we read it.
            while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
            {
            // If it is a quit message, exit.
            if (msg.message == WM_QUIT)
            return 1;
            // Otherwise, dispatch the message.
            DispatchMessage(&msg);
            } // End of PeekMessage while loop.

            // Wait for any message sent or posted to this queue
            // or for one of the passed handles be set to signaled.
            result = MsgWaitForMultipleObjects(cObjects, lphObjects,
            FALSE, INFINITE, QS_ALLINPUT);

            // The result tells us the type of event we have.
            if (result == (WAIT_OBJECT_0 cObjects))
            {
            // New messages have arrived.
            // Continue to the top of the always while loop to
            // dispatch them and resume waiting.
            continue;
            }
            else
            {
            // One of the handles became signaled.
            DoStuff (result - WAIT_OBJECT_0) ;
            } // End of else clause.
            } // End of the always while loop.
            } // End of function.

            ?

            久久91亚洲人成电影网站| 久久久久亚洲av毛片大| 人人妻久久人人澡人人爽人人精品| 久久精品一区二区影院| 久久亚洲国产精品123区| 欧美性大战久久久久久| 亚洲国产精品无码久久久秋霞2| 麻豆成人久久精品二区三区免费 | 久久久av波多野一区二区| 久久这里有精品| 久久人人爽人人爽人人片av高请| 国产精品久久久久久福利漫画| 国产精品午夜久久| 久久99久久99精品免视看动漫| 亚洲国产成人久久综合区| 久久亚洲私人国产精品| 久久伊人亚洲AV无码网站| 久久国产精品-国产精品| 久久狠狠爱亚洲综合影院| 91精品国产91久久久久久蜜臀| 国产aⅴ激情无码久久| 久久久久亚洲AV成人网人人网站 | 精品久久久中文字幕人妻| 国产日韩久久久精品影院首页| 狠狠色噜噜色狠狠狠综合久久| 久久精品亚洲乱码伦伦中文| 国产午夜免费高清久久影院| 亚洲精品无码久久一线| 亚洲精品成人网久久久久久| yellow中文字幕久久网| 国产精品久久久久久| 精品九九久久国内精品| 国产精品99久久99久久久| 久久综合九色综合网站| 日韩欧美亚洲综合久久| 久久亚洲精品无码aⅴ大香| 一本色综合久久| 亚洲中文字幕无码久久2020| 2021国产精品久久精品| 国产aⅴ激情无码久久| 久久精品国产久精国产思思|