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

            小默

            [zz]MFC - m_pMainWnd

            CWnd* m_pMainWnd;       // main window (usually same AfxGetApp()->m_pMainWnd)
            ...
            m_pMainWnd = &dlg;


            Use this data member to store a pointer to your thread’s main window object. The Microsoft Foundation Class Library will automatically terminate your thread when the window referred to by m_pMainWnd is closed. If this thread is the primary thread for an application, the application will also be terminated. If this data member is NULL, the main window for the application’s CWinApp object will be used to determine when to terminate the thread. m_pMainWnd is a public variable of type CWnd*.

             

            Typically, you set this member variable when you override InitInstance. In a worker thread, the value of this data member is inherited from its parent thread.

                 用該成員變量去存儲(chǔ)你的線程主窗口對(duì)象。當(dāng)和m_pMainWnd 相關(guān)的窗口被關(guān)閉后,MFC會(huì)自動(dòng)終止你的線程。如果該線程是應(yīng)用程序主線程,程序也將會(huì)被終止。如果該數(shù)據(jù)成員為NULL,應(yīng)用程序CWinApp對(duì)象的主窗口將用來(lái)決定什么時(shí)候去終止線程。m_pMainWnd是一個(gè)CWnd*類型的public變量。
                 很明顯,你需要在重載InitInstance時(shí)為m_pMainWnd賦值。在工作線程中,m_pMainWnd自動(dòng)繼承其父線程的值。

            posted on 2009-10-22 20:24 小默 閱讀(1149) 評(píng)論(0)  編輯 收藏 引用 所屬分類: Language

            導(dǎo)航

            統(tǒng)計(jì)

            留言簿(13)

            隨筆分類(287)

            隨筆檔案(289)

            漏洞

            搜索

            積分與排名

            最新評(píng)論

            閱讀排行榜

            香港aa三级久久三级老师2021国产三级精品三级在 | 久久久久久久综合日本| 久久99精品久久久久久久久久| 久久久国产亚洲精品| 中文字幕久久精品| 国产精品99久久久精品无码| 久久无码人妻精品一区二区三区 | 青青青青久久精品国产 | 久久精品国产乱子伦| 国产色综合久久无码有码| 综合久久给合久久狠狠狠97色| 一级a性色生活片久久无| 久久人妻AV中文字幕| 无码超乳爆乳中文字幕久久| 国产午夜福利精品久久2021| 久久福利青草精品资源站| 国产AV影片久久久久久| 久久久久久国产a免费观看不卡 | 新狼窝色AV性久久久久久| 国产99久久久国产精品小说| 一本久久a久久精品亚洲| 久久久久人妻精品一区| 亚洲乱亚洲乱淫久久| 性做久久久久久久久浪潮| 久久久久久久久久久久中文字幕| 狠狠色婷婷综合天天久久丁香| 久久久久女教师免费一区| 97久久婷婷五月综合色d啪蜜芽| 国产精品一久久香蕉国产线看观看| 日本精品久久久中文字幕| 亚洲人成无码www久久久| 久久精品国产清高在天天线| 久久久WWW免费人成精品| 久久综合狠狠综合久久综合88| 97久久精品人人澡人人爽| 99久久夜色精品国产网站| 国产农村妇女毛片精品久久| 狼狼综合久久久久综合网| 无码人妻久久一区二区三区蜜桃| 久久精品无码午夜福利理论片| 久久综合精品国产一区二区三区|