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

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

            導航

            統計

            留言簿(13)

            隨筆分類(287)

            隨筆檔案(289)

            漏洞

            搜索

            積分與排名

            最新評論

            閱讀排行榜

            99久久综合国产精品免费| 激情五月综合综合久久69| 国产成人无码精品久久久久免费| 久久综合丝袜日本网| 久久久久久毛片免费看| 欧洲精品久久久av无码电影| 伊人久久大香线焦综合四虎| 一本大道久久东京热无码AV| 狠色狠色狠狠色综合久久| 亚洲精品无码专区久久同性男| A狠狠久久蜜臀婷色中文网| 欧美午夜A∨大片久久| 久久综合国产乱子伦精品免费| 国产精品日韩欧美久久综合| 久久久久久九九99精品| 亚洲国产精品成人久久蜜臀| 久久久中文字幕日本| 久久精品中文字幕第23页| 亚洲国产成人久久一区久久| 久久婷婷五月综合色99啪ak| 亚洲国产精品嫩草影院久久| 伊人久久大香线蕉精品不卡| 中文字幕无码久久人妻| 久久精品日日躁夜夜躁欧美| 久久人人爽人人爽人人AV| 久久精品国产亚洲av麻豆蜜芽| 亚洲国产精品无码久久一区二区 | 人人狠狠综合久久亚洲高清| 狠狠人妻久久久久久综合| 色婷婷噜噜久久国产精品12p| 一本久久a久久精品vr综合| 国内精品久久国产大陆| 欧美亚洲国产精品久久| www.久久热.com| 2022年国产精品久久久久| 欧美精品福利视频一区二区三区久久久精品 | 国产精品成人久久久| 久久精品免费观看| 亚洲欧美精品一区久久中文字幕| 久久亚洲精品无码VA大香大香| 狠狠色丁香久久综合五月|