ify">//CVar6Doc construction/destructionDoc :: CVar6Doc ()
{
//TODO: add one-time construction code here
} Doc :: ~ CVar6Doc ()
{
} CVar6Doc :: OnNewDocument ()
{(! CDocument :: OnNewDocument ()) FALSE;
//TODO: add reinitialization code here
//(SDI documents will reuse this document) TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//CVar6Doc serialization
void CVar6Doc :: Serialize (CArchive amp; ar)
{. Serialize (ar);
}
/////////////////////////////////////////////////////////////////////////////
//CVar6Doc diagnostics
# ifdef _DEBUGCVar6Doc :: AssertValid () const
{:: AssertValid ();
}
void CVar6Doc :: Dump (CDumpContext amp; dc) const
{:: Dump (dc);
}
# endif//_ DEBUG
/////////////////////////////////////////////////////////////////////////////
//CVar6Doc commands
Var6Doc.h
//var6Doc.h: interface of the CVar6Doc class
//
/////////////////////////////////////////////////////////////////////////////
# if! defined (AFX_VAR6DOC_H__EFC4D7BA_2FBE_4FF4_ACCD_8909E8A7459B__INCLUDED _)
# define AFX_VAR6DOC_H__EFC4D7BA_2FBE_4FF4_ACCD_8909E8A7459B__INCLUDED _
# if _MSC_VER gt; 1000
# pragma once
# endif//_MSC_VER gt; 1000CVar6Doc: public CDocument
{://create from serialization onlyDoc (); _ DYNCREATE (CVar6Doc)
//Attributes: list;
//Operations:
//Overrides
//ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL (CVar6Doc): BOOL OnNewDocument (); void Serialize (CArchive amp; ar);
//}} AFX_VIRTUAL
//Implementation: ~ CVar6Doc ();
# ifdef _DEBUGvoid AssertValid () const; void Dump (CDumpContext amp; dc) const;
# endif:
//Generated message map functions:
//{{AFX_MSG (CVar6Doc)
//NOTE - the ClassWizard will add and remove member functions here.
//DO NOT EDIT what you see in these blocks of generated code!
//}} AFX_MSG_MESSAGE_MAP ()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
//Microsoft Visual C ++ will insert additional declarations immediately before the previous line.
# endif //! defined (AFX_VAR6DOC_H__EFC4D7BA_2FBE_4FF4_ACCD_8909E8A7459B__INCLUDED_) view.cpp:
//var6View.cpp: implementation of the CVar6View class
//
# include stdafx.h
# include var6.h
# include var6Doc.h
# include var6View.h
# include MainFrm.h
# include ProductDlg.h
# include ClientDlg.h
# include TicketDlg.h
# ifdef _DEBUG
# define new DEBUG_NEW
# undef THIS_FILEchar THIS_FILE []=__FILE __;
# endif
/////////////////////////////////////////////////////////////////////////////
//CVar6View
IMPLEMENT_DYNCREATE (CVar6View, CFormView) _MESSAGE_MAP (CVar6View, CFormView)
//{{AFX_MSG_MAP (CVar6View) _BN_CLICKED (IDC_ADD, OnAdd) _COMMAND (ID_BUTTON_ADD, OnAdd) _COMMAND (ID_BUTTON_DELETE, OnDelete) _BN_CLICKED (IDC_DELETE, OnDelete)
//}} AFX_MSG_MAP_MESSAGE_MAP ()
/////////////////////////////////////////////////////////////////////////////
//CVar6View construction/destructionView :: CVar6View ()
: CFormView (CVar6View :: IDD)
{
//{{AFX_DATA_INIT (CVar6View)