• <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++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            MSDN 中的 MessageLoop

            Posted on 2009-05-01 22:00 S.l.e!ep.¢% 閱讀(333) 評論(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.

            ?

            久久精品国内一区二区三区| 亚洲国产综合久久天堂| 久久精品国产亚洲AV电影| 97久久天天综合色天天综合色hd| 97精品久久天干天天天按摩 | 久久精品成人一区二区三区| 亚洲国产小视频精品久久久三级| 国产亚洲精品久久久久秋霞| 久久99精品国产麻豆宅宅| 人人狠狠综合久久亚洲高清| 久久久久99精品成人片试看 | 久久久久免费看成人影片| 久久夜色精品国产www| 国产人久久人人人人爽| 久久精品国产欧美日韩99热| 久久99国产精品99久久| 久久精品国产亚洲AV不卡| 久久丝袜精品中文字幕| 亚洲成色999久久网站| 久久久久亚洲AV无码网站| 久久精品成人欧美大片| 久久综合亚洲色HEZYO国产| 久久夜色精品国产亚洲| av无码久久久久久不卡网站| 中文字幕日本人妻久久久免费 | 精品无码久久久久久午夜| 国内精品伊人久久久影院| 欧美久久综合九色综合| 久久精品无码一区二区app| 久久久久久久尹人综合网亚洲| 色诱久久久久综合网ywww | aaa级精品久久久国产片| 精品久久人妻av中文字幕| 久久99国产精品尤物| 久久国产免费观看精品3| 韩国免费A级毛片久久| 国产精品禁18久久久夂久| 国产亚洲美女精品久久久久狼| 久久午夜电影网| 久久成人18免费网站| 成人综合久久精品色婷婷 |