• <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>
            asm, c, c++ are my all
            -- Core In Computer
            posts - 139,  comments - 123,  trackbacks - 0
            /********************************************\
            |????歡迎轉載, 但請保留作者姓名和原文鏈接, 祝您進步并共勉!???? |
            \********************************************/


            讀VC++內幕之體悟 - 11
            作者: Jerry Cat
            時間: 2006/09/10
            鏈接:http://www.shnenglu.com/jerysun0818/archive/2006/09/10/12225.html


            通過在函數OnInitDialog中加入AfxOleLockControl(someActivexControl.GetClsid());可以把ActiveX控件鎖定在內存中,這樣,除非程序退出或者調用了AfxOleUnlockControl,ActiveX控件將總在內存中。
            posted on 2006-09-10 20:20 Jerry Cat 閱讀(744) 評論(3)  編輯 收藏 引用

            FeedBack:
            # re: 讀VC++內幕之體悟 - 11
            2006-09-10 20:48 | chenger
            就這么一點?  回復  更多評論
              
            # re: 讀VC++內幕之體悟 - 11
            2006-09-10 21:00 | Jerry Cat
            積少成多, 聚砂成塔!  回復  更多評論
              
            # re: 讀VC++內幕之體悟 - 11
            2006-09-10 22:49 | 萬連文
            Locks the class factory of the specified control so that dynamically created data associated with the control remains in memory. This can significantly speed up display of the controls. For example, once you create a control in a dialog box and lock the control with AfxOleLockControl, you do not need to create and kill it again every time the dialog is shown or destroyed. If the user opens and closes a dialog box repeatedly, locking your controls can significantly enhance performance. When you are ready to destroy the control, call AfxOleUnlockControl.
            根據msdn解釋和參數來看,恐怕鎖住的不是控件而是控件對應的類廠,僅僅一個clsid不是實例對象,充其量只是決定控件的類型信息。這樣好處應該是多次創建帶來的,COM組件創建需要類廠。  回復  更多評論
              

            <2006年7月>
            2526272829301
            2345678
            9101112131415
            16171819202122
            23242526272829
            303112345

            常用鏈接

            留言簿(7)

            隨筆檔案

            最新隨筆

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            久久精品国产亚洲Aⅴ蜜臀色欲| 久久久久国色AV免费看图片| 亚洲精品乱码久久久久久久久久久久 | 麻豆成人久久精品二区三区免费| 久久无码人妻一区二区三区| 亚洲国产成人久久精品影视| 怡红院日本一道日本久久 | 久久国产乱子伦精品免费强| 久久久久18| 精品国产91久久久久久久| 无码8090精品久久一区| 久久亚洲精品中文字幕三区| 亚洲国产另类久久久精品黑人| 91性高湖久久久久| 午夜精品久久久久久中宇| 久久久91人妻无码精品蜜桃HD | 久久久亚洲裙底偷窥综合 | 香蕉久久影院| 日本免费一区二区久久人人澡 | 久久精品国产亚洲AV嫖农村妇女| 久久久久免费视频| 91性高湖久久久久| 久久精品国产91久久麻豆自制| 久久乐国产综合亚洲精品| 久久久久国产视频电影| 久久青青草原国产精品免费| 亚洲中文字幕无码久久精品1| 久久国产色av免费看| 九九久久精品国产| 热久久国产精品| 狠色狠色狠狠色综合久久| 91精品国产91久久久久久青草| 99久久久精品免费观看国产| 久久精品中文无码资源站| 日本久久久久亚洲中字幕| 久久99精品国产自在现线小黄鸭 | 伊人久久精品线影院| 久久精品视频网| 久久精品无码一区二区日韩AV| 久久久久免费视频| 伊人久久大香线蕉av一区|