在VC下可以用formview 实现像VB下的form吗?要是MDI 的,而且一个视图不要求对应一个文档;是VIEW,而不是对话框.

解决方案 »

  1.   

    我有个程序是用view实现对话框的留下邮箱
    头文件
    class CTabbedView : public CScrollView
    {
    protected:
    CTabbedView();           // protected constructor used by dynamic creation
    DECLARE_DYNCREATE(CTabbedView)// Attributes
    public:// Operations
    public:
    CPropertySheet m_sheet;
    CButton m_button;
    CFirstPage m_pageOne;
    CSecondPage m_pageTwo;// Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CTabbedView)
    protected:
    virtual void OnDraw(CDC* pDC);      // overridden to draw this view
    virtual void OnInitialUpdate();     // first time after construct
    //}}AFX_VIRTUAL// Implementation
    protected:
    virtual ~CTabbedView();
    #ifdef _DEBUG
    virtual void AssertValid() const;
    virtual void Dump(CDumpContext& dc) const;
    #endif // Generated message map functions
    //{{AFX_MSG(CTabbedView)
    // afx_msg void OnInitialUpdate();
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
    afx_msg BOOL OnEraseBkgnd(CDC *pDC);
    afx_msg void OnApply();
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
    };
      

  2.   

    能否把找码给全些?谢谢。
    [email protected]