代码很简单 static bool bGet = false; CMyMainFuncView::CMyMainFuncView() { if (!bGet) { CString _str; _str.Format("CMyMainFuncView::PreCreateWindow address(may virtual func jump): 0x%p", &CMyMainFuncView::PreCreateWindow); AfxMessageBox(_str); bGet =true; } }