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

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

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

            導(dǎo)航

            統(tǒng)計

            留言簿(13)

            隨筆分類(287)

            隨筆檔案(289)

            漏洞

            搜索

            積分與排名

            最新評論

            閱讀排行榜

            中文国产成人精品久久亚洲精品AⅤ无码精品 | 久久亚洲精品视频| 91精品日韩人妻无码久久不卡| 99国内精品久久久久久久| 一本色道久久88综合日韩精品 | 久久人爽人人爽人人片AV| 久久99毛片免费观看不卡| 欧美日韩精品久久久久| 一本久道久久综合狠狠爱| 嫩草影院久久国产精品| 久久久久久精品无码人妻| 99久久免费国产精品| 热re99久久精品国99热| 久久强奷乱码老熟女| 久久91精品国产91久久户| 久久婷婷午色综合夜啪| 91亚洲国产成人久久精品| 日本久久久久亚洲中字幕| 精品久久久久久无码免费| 99久久中文字幕| 国产精品免费福利久久| 久久夜色精品国产噜噜亚洲a| 久久99精品九九九久久婷婷| 精品九九久久国内精品| 久久男人Av资源网站无码软件 | 久久中文字幕一区二区| 午夜精品久久久久久久| 国产精品久久久久久久久久影院| 日本久久久久久中文字幕| 成人久久久观看免费毛片| 精品永久久福利一区二区| 乱亲女H秽乱长久久久| 亚洲国产精品无码久久久不卡| 免费精品国产日韩热久久| 亚洲精品tv久久久久| 尹人香蕉久久99天天拍| 久久午夜无码鲁丝片秋霞| yy6080久久| 色8久久人人97超碰香蕉987| 日韩精品久久久肉伦网站| 久久水蜜桃亚洲av无码精品麻豆|