• <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://m.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)

            隨筆檔案

            最新隨筆

            搜索

            •  

            最新評論

            閱讀排行榜

            評論排行榜

            亚洲欧美一区二区三区久久| 久久99国产精品成人欧美| 无码国内精品久久综合88| 亚洲AV无码成人网站久久精品大| 色欲综合久久躁天天躁蜜桃| 青青热久久综合网伊人| 99久久免费国产精精品| 久久乐国产综合亚洲精品| 精品久久人妻av中文字幕| 一本一本久久a久久精品综合麻豆| 无遮挡粉嫩小泬久久久久久久| 国产精品九九久久免费视频| 亚洲国产精品高清久久久| 亚洲国产精品婷婷久久| 久久亚洲精品成人av无码网站| 精品久久久久中文字幕一区| 久久棈精品久久久久久噜噜| 少妇被又大又粗又爽毛片久久黑人| 欧美亚洲另类久久综合| 人妻无码αv中文字幕久久| 要久久爱在线免费观看| 国产精品成人久久久久久久| 成人妇女免费播放久久久| 久久精品无码专区免费青青| 久久本道久久综合伊人| 久久久久久狠狠丁香| 99久久精品国内| av无码久久久久不卡免费网站 | 性高朝久久久久久久久久| 亚洲国产天堂久久综合网站 | 国产成人久久精品麻豆一区 | 久久久久久久久波多野高潮| 久久嫩草影院免费看夜色| 成人精品一区二区久久| 日本精品久久久久中文字幕8| 久久精品无码专区免费东京热| 久久久久久夜精品精品免费啦| 久久精品国产精品亚洲毛片| 国产成人精品久久二区二区| 色综合色天天久久婷婷基地| 久久国产精品二国产精品|