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

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

            導航

            統(tǒng)計

            留言簿(13)

            隨筆分類(287)

            隨筆檔案(289)

            漏洞

            搜索

            積分與排名

            最新評論

            閱讀排行榜

            久久久久无码精品| 久久久一本精品99久久精品88| 日韩人妻无码精品久久免费一| 亚洲AV无码久久寂寞少妇| 色妞色综合久久夜夜| 7777久久亚洲中文字幕| 久久伊人中文无码| 精品久久久久中文字幕日本| 久久精品国产亚洲AV不卡| 一本大道久久香蕉成人网| 亚洲精品国产成人99久久| 久久99国产精品久久99小说| 精品午夜久久福利大片| 久久亚洲私人国产精品| 国产高清美女一级a毛片久久w | 国内精品伊人久久久久av一坑| 99久久精品国产高清一区二区 | 久久国产精品一区| 久久精品国产亚洲αv忘忧草| 久久精品国产72国产精福利| 无码专区久久综合久中文字幕 | 嫩草影院久久99| 国产精品久久自在自线观看| 久久精品无码av| 久久九九有精品国产23百花影院| 亚洲午夜福利精品久久| 中文字幕亚洲综合久久2| www性久久久com| 亚洲国产精品高清久久久| 无码任你躁久久久久久老妇App| 亚洲国产成人久久精品动漫| 国产亚洲色婷婷久久99精品| 无码超乳爆乳中文字幕久久| 伊人精品久久久久7777| 中文字幕无码av激情不卡久久| 精品久久久久中文字幕一区| 国产L精品国产亚洲区久久| 久久国产免费观看精品3| 欧美va久久久噜噜噜久久| 久久久久亚洲av综合波多野结衣| 香蕉久久夜色精品国产尤物|