我在用:Add Virtural Funcion 添加完On Print 函数后,在所添加的类里并没有出现此函数,请问大虾这是怎么回事呀?

解决方案 »

  1.   

    你点的是ok不是add handle吧,你点add handle才可以啊
      

  2.   

    也可以自己添加:
    头文件:
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(COnPrintView)
    public:
    virtual void OnDraw(CDC* pDC);  // overridden to draw this view
             //......
    virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
    //}}AFX_VIRTUAL实现文件:
    void CXXXView::OnPrint(CDC* pDC, CPrintInfo* pInfo) 
    {
    // TODO: Add your specialized code here and/or call the base class

    CView::OnPrint(pDC, pInfo);
    }