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

                問題描述

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

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

                例如,這兩個調(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);

                主要問題:我應該什么時候使用其中一個?背景中是否存在任何差異?(不同的 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..)

                我想重繪窗口的原因是因為我向它發(fā)送了一個我希望它顯示的新圖像,這意味著窗口的內(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 不會立即重繪窗口.它只是為窗口的特定矩形區(qū)域安排"未來的重繪.使用 InvalidateRect 您可以根據(jù)需要安排任意數(shù)量的區(qū)域,使它們累積在一些內(nèi)部緩沖區(qū)中.當窗口無事可做時,所有累積預定區(qū)域的實際重繪將在稍后進行.(當然,如果在您發(fā)出 InvalidateRect 調(diào)用時窗口處于空閑狀態(tài),則會立即進行重繪).

                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 強制立即重繪所有當前累積的無效區(qū)域.但是,同樣,如果您不著急,則沒有必要顯式調(diào)用 UpdateWindow,因為一旦窗口空閑,它將自動為所有當前無效的區(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 是一個具有更廣泛和靈活的功能集的函數(shù).它可用于執(zhí)行失效調(diào)度(即與 InvalidateRect 所做的相同)或可用于強制執(zhí)行指定區(qū)域的立即重繪,而不進行任何調(diào)度".在后一種情況下,調(diào)用 RedrawWindow 實際上等同于調(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.

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

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

                相關文檔推薦

                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(從構造函數(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>

                          主站蜘蛛池模板: 成人欧美一区二区三区黑人孕妇 | 天天草天天干天天 | 国产精品爱久久久久久久 | 久久久国产精品网站 | 国产一区二区毛片 | 亚洲视频中文字幕 | 亚洲精品视频免费 | 国产精品成人一区 | 日韩久久久久 | 国产a视频 | 国产女人第一次做爰毛片 | 国产激情毛片 | 亚洲精品久久久久久久久久久久久 | 成人国产精品免费观看 | 综合二区 | 国产特级毛片aaaaaa喷潮 | 亚洲一区二区三区高清 | 欧美日韩久久 | 亚洲精品欧美 | 爱爱综合网 | 欧美天堂| 一区二区三区成人 | 久久国产一区二区三区 | 亚洲欧洲精品在线 | 国产999精品久久久久久 | 麻豆一区一区三区四区 | 日操操夜操操 | www.色.com | 久久久tv | 欧美成人精品在线观看 | 午夜影院在线观看免费 | 欧美中文字幕一区二区 | 国户精品久久久久久久久久久不卡 | 亚洲精品一区二区三区四区高清 | av看看 | 日韩精品一区二区三区在线播放 | 91在线一区二区 | 99久热| www.久久国产精品 | 日本三级在线网站 | 精品欧美乱码久久久久久 |