• <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


            通過在函數(shù)OnInitDialog中加入AfxOleLockControl(someActivexControl.GetClsid());可以把ActiveX控件鎖定在內存中,這樣,除非程序退出或者調用了AfxOleUnlockControl,ActiveX控件將總在內存中。
            posted on 2006-09-10 20:20 Jerry Cat 閱讀(725) 評論(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.
            根據(jù)msdn解釋和參數(shù)來看,恐怕鎖住的不是控件而是控件對應的類廠,僅僅一個clsid不是實例對象,充其量只是決定控件的類型信息。這樣好處應該是多次創(chuàng)建帶來的,COM組件創(chuàng)建需要類廠。  回復  更多評論
              

            <2006年5月>
            30123456
            78910111213
            14151617181920
            21222324252627
            28293031123
            45678910

            常用鏈接

            留言簿(7)

            隨筆檔案

            最新隨筆

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            国产精品伊人久久伊人电影| 久久人人妻人人爽人人爽| 国产91久久综合| 一级做a爰片久久毛片毛片| 午夜久久久久久禁播电影| 99久久精品国产一区二区| 欧美一级久久久久久久大片| 久久久亚洲欧洲日产国码aⅴ | 久久久久亚洲AV无码专区网站| 亚洲欧美久久久久9999| 久久国产乱子伦精品免费强| 免费精品久久天干天干| 99久久伊人精品综合观看| 亚洲精品美女久久777777| 国产精品久久久久久久午夜片| 久久午夜无码鲁丝片秋霞| 91精品无码久久久久久五月天| 中文字幕亚洲综合久久菠萝蜜| 色综合合久久天天综合绕视看| 久久久久人妻一区二区三区| 久久婷婷五月综合成人D啪| 久久久久综合网久久| 久久久久人妻精品一区二区三区| 香蕉久久AⅤ一区二区三区| 久久99精品久久久久久水蜜桃| 国产亚洲色婷婷久久99精品| 人妻少妇久久中文字幕| 伊人久久大香线焦AV综合影院| 久久最新免费视频| 久久久久亚洲AV成人网| 日韩精品久久久久久| 狠狠色丁香久久婷婷综| 久久香蕉一级毛片| 久久国产免费观看精品| 久久久久免费精品国产| 久久综合丝袜日本网| 国产—久久香蕉国产线看观看 | 精品国产乱码久久久久久郑州公司 | 99久久国产热无码精品免费| 婷婷五月深深久久精品| 国产产无码乱码精品久久鸭|