1. doc类中获得view指针 2、view类中获得doc指针 CPowerTower_SlopeDoc *pDoc = GetDocument(); 3、dlg类获得doc、view指针 4、doc、view类中获得dlg指针