久久久久久久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++?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

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

                  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);
                          }
                      }
                  }
                  

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

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

                  相關文檔推薦

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

                    • <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. 主站蜘蛛池模板: 欧美一区二区三区四区五区 | 深夜视频在线观看 | 91激情网 | 日韩一区二区三区免费 | 黄色大片一级 | 久久在线免费视频 | 国产日韩久久 | 免费网站观看www在线观看 | av一区二区三区四区 | 五月婷在线 | 一级毛片一级毛片 | 99视频精品 | 久久久久一区二区三区 | 久久久久久中文字幕 | 中文字幕一区二区三区乱码 | 国产精品美女在线观看 | 日b免费视频 | 午夜爱 | 干干干操操操 | 日本精品二区 | 成人免费看片 | 欧美日韩精品久久久免费观看 | 五月激情网站 | 伊人天堂网 | 亚洲黄色网址 | 免费一级全黄少妇性色生活片 | 久久精品在线观看 | 免费在线毛片 | 日本成人小视频 | 国产在线视频一区 | 少妇免费视频 | 国产成人精品一区二 | 亚洲黄色在线 | 日韩资源在线 | 在线观看中文字幕 | 日韩色黄大片 | 一区二区三区在线看 | 欧美一级片网站 | 中国女人真人一级毛片 | 欧美亚洲国产日韩 | 国产在线一区二区三区 |