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

            (轉)doc類,view類,frame類之間互相調用 作者:Fansy2000 (頂頂)

            (轉)doc類,view類,frame類之間互相調用
            作者:Fansy2000   (頂頂)  


             訪問應用程序的其它類   
                
             獲得CWinApp:  
              -在CMainFrame,CChildFrame,CDocument,CView中直接調用AfxGetApp()或用theApp  
              -在其它類中只能用AfxGetApp()  
               
              獲得CMainFrame:  
              -在CMinApp中用AfxGetMainWnd()或者m_pMainWnd  
              -在CChildFrame中可用GetParentFrame()  
              -在其它類中用AfxGetMainWnd()  
               
              獲得CChildFrame:  
              -在CView中用GetParentFrame()  
              -在CMainFrame中用MDIGetActive()或GetActiveFrame()  
              -在其它類中用AfxGetMainWnd()->MDIGetActive()或AfxGetMainWnd()->GetActiveFrame()  
               
              獲得CDocument:  
              -在CView中用GetDocument()  
              -在CChildFrame中用GetActiveView()->GetDocument()  
              -在CMainFrame中用  
              -if   SDI:GetActiveView()->GetDocument()  
              -if   MDI:MDIGetActive()->GetActiveView()->GetDocument()  
              -在其它類中  
              -if   SDI:AfxGetMainWnd()->GetActiveView()->GetDocument()  
              -if   MDI:AfxGetMainWnd()->MDIGetActive()->GetActiveView()->GetDocument()  
               
              獲得CView:  
              -在CDocument中   POSITION   pos   =   GetFirstViewPosition();GetNextView(pos)  
              -在CChildFrame中   GetActiveView()  
              -在CMainFrame中  
              -if   SDI:GetActiveView()  
              -if   MDI:MDIGetActive()->GetActiveView()  
              -在其它類中  
              -if   SDI:AfxGetMainWnd()->GetActiveView()  
              -if   MDI:AfxGetMainWnd()->MDIGetActive()->GetActiveView() 

            posted on 2011-07-30 20:09 tiger7 閱讀(407) 評論(0)  編輯 收藏 引用 所屬分類: VC

            <2025年8月>
            272829303112
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

            導航

            統計

            公告

            welcome to tiger's blog.

            常用鏈接

            留言簿

            文章分類

            文章檔案

            搜索

            最新評論

            久久精品国产第一区二区| 久久天天躁狠狠躁夜夜躁2014| 97久久精品无码一区二区天美 | 99久久国产综合精品五月天喷水| 久久天天躁狠狠躁夜夜躁2O2O | 久久综合亚洲色一区二区三区| 久久人人爽人人爽人人片av高请| 97久久精品人妻人人搡人人玩| 国产精品成人99久久久久| 久久99这里只有精品国产| 99久久人妻无码精品系列蜜桃 | 伊人久久大香线蕉亚洲五月天| 秋霞久久国产精品电影院| 久久久久国产精品人妻| yellow中文字幕久久网| 久久久久亚洲AV无码网站| 国产叼嘿久久精品久久| 婷婷综合久久中文字幕蜜桃三电影| 久久国产免费观看精品| 久久久久久精品成人免费图片| 99国内精品久久久久久久 | 国产一区二区精品久久凹凸 | 久久国产成人午夜aⅴ影院| 丰满少妇人妻久久久久久| 久久99这里只有精品国产| 国产毛片久久久久久国产毛片| 精品无码久久久久久午夜| 伊人伊成久久人综合网777| 久久成人永久免费播放| 91麻豆精品国产91久久久久久| 久久久久久午夜成人影院 | 伊人色综合久久天天人手人婷| 久久这里有精品视频| 久久强奷乱码老熟女网站| 久久精品无码专区免费| 国产A级毛片久久久精品毛片| 久久久久久久综合日本亚洲| 精品久久久久久成人AV| 国产精品久久网| 久久美女网站免费| 久久国产精品波多野结衣AV|