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

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

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

      <bdo id='u06Zd'></bdo><ul id='u06Zd'></ul>
      <tfoot id='u06Zd'></tfoot>

      InvalidateRect 和 RedrawWindow 的區(qū)別

      Difference between InvalidateRect and RedrawWindow(InvalidateRect 和 RedrawWindow 的區(qū)別)
      • <tfoot id='SKJ87'></tfoot>
          <tbody id='SKJ87'></tbody>
        <legend id='SKJ87'><style id='SKJ87'><dir id='SKJ87'><q id='SKJ87'></q></dir></style></legend>

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

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

              1. 本文介紹了InvalidateRect 和 RedrawWindow 的區(qū)別的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                當(dāng)我想重繪一個(gè)窗口時(shí),有沒有什么首選的函數(shù)可以在 InvalidateRect 和 RedrawWindow 之間調(diào)用?

                When I want to redraw a window, is there any preferred function to call between InvalidateRect and RedrawWindow?

                例如,這兩個(gè)調(diào)用是否相等:(win 將是 HWND)
                RedrawWindow(win, NULL, NULL, RDW_INVALIDATE);
                InvalidateRect(win, NULL, NULL);

                For instance, are these two calls equal: (win would be a HWND)
                RedrawWindow(win, NULL, NULL, RDW_INVALIDATE);
                InvalidateRect(win, NULL, NULL);

                主要問題:我應(yīng)該什么時(shí)候使用其中一個(gè)?背景中是否存在任何差異?(不同的 WM_messages/focus/order/priorities..)

                The main question(s): When should I use one or the other? Are there any differences that happen in the background? (different WM_messages / focus / order / priorities..)

                我想重繪窗口的原因是因?yàn)槲蚁蛩l(fā)送了一個(gè)我希望它顯示的新圖像,這意味著窗口的內(nèi)容不再有效.

                The reason that I want to redraw the window is because I send a new image to it that I want it to display, meaning the content of the window is no longer valid.

                推薦答案

                InvalidateRect 不會(huì)立即重繪窗口.它只是為窗口的特定矩形區(qū)域安排"未來的重繪.使用 InvalidateRect 您可以根據(jù)需要安排任意數(shù)量的區(qū)域,使它們累積在一些內(nèi)部緩沖區(qū)中.當(dāng)窗口無事可做時(shí),所有累積預(yù)定區(qū)域的實(shí)際重繪將在稍后進(jìn)行.(當(dāng)然,如果在您發(fā)出 InvalidateRect 調(diào)用時(shí)窗口處于空閑狀態(tài),則會(huì)立即進(jìn)行重繪).

                InvalidateRect does not immediately redraw the window. It simply "schedules" a future redraw for a specific rectangular area of the window. Using InvalidateRect you may schedule as many areas as you want, making them accumulate in some internal buffer. The actual redrawing for all accumulated scheduled areas will take place later, when the window has nothing else to do. (Of course, if the window is idle at the moment when you issue the InvalidateRect call, the redrawing will take place immediately).

                您還可以通過調(diào)用 UpdateWindow 強(qiáng)制立即重繪所有當(dāng)前累積的無效區(qū)域.但是,同樣,如果您不著急,則沒有必要顯式調(diào)用 UpdateWindow,因?yàn)橐坏┐翱诳臻e,它將自動(dòng)為所有當(dāng)前無效的區(qū)域執(zhí)行重繪.

                You can also force an immediate redraw for all currently accumulated invalidated areas by calling UpdateWindow. But, again, if you are not in a hurry, explicitly calling UpdateWindow is not necessary, since once the window is idle it will perform a redraw for all currently invalidated areas automatically.

                RedrawWindow 是一個(gè)具有更廣泛和靈活的功能集的函數(shù).它可用于執(zhí)行失效調(diào)度(即與 InvalidateRect 所做的相同)或可用于強(qiáng)制執(zhí)行指定區(qū)域的立即重繪,而不進(jìn)行任何調(diào)度".在后一種情況下,調(diào)用 RedrawWindow 實(shí)際上等同于調(diào)用 InvalidateRect 然后立即調(diào)用 UpdateWindow.

                RedrawWindow, on the other hand, is a function with a much wider and flexible set of capabilities. It can be used to perform invalidation scheduling (i.e. the same thing InvalidateRect does) or it can be used to forcefully perform immediate redrawing of the specified area, without doing any "scheduling". In the latter case calling RedrawWindow is virtually equivalent to calling InvalidateRect and then immediately calling UpdateWindow.

                這篇關(guān)于InvalidateRect 和 RedrawWindow 的區(qū)別的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                In what ways do C++ exceptions slow down code when there are no exceptions thown?(當(dāng)沒有異常時(shí),C++ 異常會(huì)以何種方式減慢代碼速度?)
                Why catch an exception as reference-to-const?(為什么要捕獲異常作為對(duì) const 的引用?)
                When and how should I use exception handling?(我應(yīng)該何時(shí)以及如何使用異常處理?)
                Scope of exception object in C++(C++中異常對(duì)象的范圍)
                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ū)別)
                <legend id='NZw5f'><style id='NZw5f'><dir id='NZw5f'><q id='NZw5f'></q></dir></style></legend>
                    <tbody id='NZw5f'></tbody>
                      <bdo id='NZw5f'></bdo><ul id='NZw5f'></ul>

                      <tfoot id='NZw5f'></tfoot>

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

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

                          主站蜘蛛池模板: 欧美午夜精品久久久久免费视 | 国产网址| 欧美精品亚洲 | 亚洲欧美在线观看 | 亚洲视频中文字幕 | 免费视频久久久 | 国产小精品 | 永久免费看mv网站入口亚洲 | 91丨九色丨国产在线 | 亚洲特级片 | 亚洲一级片 | 五月天婷婷社区 | 黄色草逼视频 | 免费黄色小说网站 | 欧美日韩在线观看视频 | 一二三区视频 | 日韩欧美在线一区 | 欧美天天干 | 电家庭影院午夜 | 91在线免费播放 | 日韩在线综合 | 日本在线免费观看视频 | 成人国产精品免费观看 | 欧美一级全黄 | 国产欧美日本 | av每日更新| 91麻豆精品一区二区三区 | 黄色免费av| 国产日韩欧美 | 久久精品一区二区三区四区 | 亚洲av毛片成人精品 | 久久爱综合 | 在线观看av免费 | 美女扒开腿让人桶爽原神 | av在线成人 | 久久精品视 | 看毛片网站 | 国产免费小视频 | 日本特级黄色片 | 精品亚洲国产成人av制服丝袜 | 日韩av在线一区 |