久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='Taju6'><tr id='Taju6'><dt id='Taju6'><q id='Taju6'><span id='Taju6'><b id='Taju6'><form id='Taju6'><ins id='Taju6'></ins><ul id='Taju6'></ul><sub id='Taju6'></sub></form><legend id='Taju6'></legend><bdo id='Taju6'><pre id='Taju6'><center id='Taju6'></center></pre></bdo></b><th id='Taju6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Taju6'><tfoot id='Taju6'></tfoot><dl id='Taju6'><fieldset id='Taju6'></fieldset></dl></div>

  • <tfoot id='Taju6'></tfoot>
        <bdo id='Taju6'></bdo><ul id='Taju6'></ul>

        <legend id='Taju6'><style id='Taju6'><dir id='Taju6'><q id='Taju6'></q></dir></style></legend>
      1. <small id='Taju6'></small><noframes id='Taju6'>

        DoEvents 等效于 C++?

        DoEvents equivalent for C++?(DoEvents 等效于 C++?)

          <small id='AswSm'></small><noframes id='AswSm'>

          <i id='AswSm'><tr id='AswSm'><dt id='AswSm'><q id='AswSm'><span id='AswSm'><b id='AswSm'><form id='AswSm'><ins id='AswSm'></ins><ul id='AswSm'></ul><sub id='AswSm'></sub></form><legend id='AswSm'></legend><bdo id='AswSm'><pre id='AswSm'><center id='AswSm'></center></pre></bdo></b><th id='AswSm'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='AswSm'><tfoot id='AswSm'></tfoot><dl id='AswSm'><fieldset id='AswSm'></fieldset></dl></div>
        1. <tfoot id='AswSm'></tfoot>

              <tbody id='AswSm'></tbody>

              <legend id='AswSm'><style id='AswSm'><dir id='AswSm'><q id='AswSm'></q></dir></style></legend>

                • <bdo id='AswSm'></bdo><ul id='AswSm'></ul>
                  本文介紹了DoEvents 等效于 C++?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我是本機 C++ 的新手.現(xiàn)在,我做到了,當(dāng)我按下鼠標左鍵時,它有一個 for 循環(huán),它執(zhí)行 InvalidateRect 并繪制一個矩形,并在每次迭代時按框大小增加 X.但是,C++ 的繪圖速度和效率比 C# 快得多,它可以立即繪制所有這些.我想要的是它使矩形無效,顯示矩形,等待 50 毫秒,然后繼續(xù)循環(huán).我試過 Sleep(50) 但它仍然等到繪畫完成后再顯示結(jié)果.我也試過 PeekMessage 但它沒有改變?nèi)魏螙|西.任何幫助,將不勝感激.謝謝

                  I'm new to native c++. Right now, I made it so when I press the left mouse button, it has a for loop that does InvalidateRect and draws a rectangle, and increments X by the box size each time it iterates. But, C++ is so much faster and efficient at drawing than C# that, it draws all this instantly. What I would like is for it to invalidate the rectangle, show the rectangle, wait 50ms, then continue the loop. I tried Sleep(50) but it still waits until painting is done before showing the result. I also tried PeekMessage but it did not change anything. Any help would be appreciated. Thanks

                  推薦答案

                  DoEvents 基本上翻譯為:

                  DoEvents basically translates as:

                  void DoEvents()
                  {
                      MSG msg;
                      BOOL result;
                  
                      while ( ::PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE ) )
                      {
                          result = ::GetMessage(&msg, NULL, 0, 0);
                          if (result == 0) // WM_QUIT
                          {                
                              ::PostQuitMessage(msg.wParam);
                              break;
                          }
                          else if (result == -1)
                          {
                               // Handle errors/exit application, etc.
                          }
                          else 
                          {
                              ::TranslateMessage(&msg);
                              :: DispatchMessage(&msg);
                          }
                      }
                  }
                  

                  這篇關(guān)于DoEvents 等效于 C++?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  In what ways do C++ exceptions slow down code when there are no exceptions thown?(當(dāng)沒有異常時,C++ 異常會以何種方式減慢代碼速度?)
                  Why catch an exception as reference-to-const?(為什么要捕獲異常作為對 const 的引用?)
                  When and how should I use exception handling?(我應(yīng)該何時以及如何使用異常處理?)
                  Scope of exception object in C++(C++中異常對象的范圍)
                  Catching exceptions from a constructor#39;s initializer list(從構(gòu)造函數(shù)的初始化列表中捕獲異常)
                  Difference between C++03 throw() specifier C++11 noexcept(C++03 throw() 說明符 C++11 noexcept 之間的區(qū)別)

                    • <bdo id='dFb6t'></bdo><ul id='dFb6t'></ul>

                        <tfoot id='dFb6t'></tfoot>
                            <tbody id='dFb6t'></tbody>

                            <small id='dFb6t'></small><noframes id='dFb6t'>

                            <legend id='dFb6t'><style id='dFb6t'><dir id='dFb6t'><q id='dFb6t'></q></dir></style></legend>
                            <i id='dFb6t'><tr id='dFb6t'><dt id='dFb6t'><q id='dFb6t'><span id='dFb6t'><b id='dFb6t'><form id='dFb6t'><ins id='dFb6t'></ins><ul id='dFb6t'></ul><sub id='dFb6t'></sub></form><legend id='dFb6t'></legend><bdo id='dFb6t'><pre id='dFb6t'><center id='dFb6t'></center></pre></bdo></b><th id='dFb6t'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='dFb6t'><tfoot id='dFb6t'></tfoot><dl id='dFb6t'><fieldset id='dFb6t'></fieldset></dl></div>
                          1. 主站蜘蛛池模板: 国产精品免费一区二区三区四区 | 操皮视频| 成人一级黄色毛片 | 亚洲一在线 | 精品一区二区三区四区外站 | 日韩成人在线看 | 在线中文字幕亚洲 | 日韩精品一区二区三区在线观看 | 国产黄色在线观看 | 国产日韩欧美一区二区 | 日本黄色大片免费看 | 毛片一区二区 | 国产精品亚洲成在人线 | 成人不卡视频 | 欧美日韩在线电影 | 中文字幕在线免费观看 | 欧美久久国产精品 | 亚洲国产精品va在线看黑人 | 精久久| 亚洲欧美国产精品一区二区 | 涩涩视频在线看 | 日韩精品中文字幕一区二区三区 | 国产一级淫片a直接免费看 免费a网站 | 国产视频不卡一区 | 欧美黄色片 | av资源中文在线 | 国产精品99久久久久久久久久久久 | 欧美日韩在线一区 | www.成人.com| 国产在线拍偷自揄拍视频 | 青青久在线视频 | 在线观看 亚洲 | 久久精品99 | 精品三级在线观看 | 国产精品成人在线播放 | 亚洲在线一区 | 久久精品国产免费一区二区三区 | av在线电影网 | 亚洲 欧美 日韩 在线 | 日本免费在线观看视频 | 久久亚洲一区二区 |