摘要:从main开始 pApp=AfxGetApp();AfxGetApp 就一个返回值return theApp.m_pCurrentWinApp因为theApp是CMyWinApp对象指针CMyWinApp 是CWinApp的派生类又因为m_pCurrentWinApp 是CWinApp 的public 权限public是公共函数 任何类都可以访问,派生类当然就能访问了回到return theApp...
阅读全文
posted @ 2010-07-16 14:35
浙公网安备 33010602011771号