pParent=NULL);// Standard constructor * Doc; ~ Dlg (); * graf; * mfr;
//Dialog Data ??p>
//{{AFX_DATA (Dlg) {IDD=IDD_DIALOG1}; _ pol; _tab; _editquery; _datagrid;
_ ConnectionPtr pConn;
_ RecordsetPtr pRecordset; fields; baza; table;
//}} AFX_DATAStructura_BD (); Connect_Baza (CString str); Recordset_Baza (CString str);
//Overrides
//ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL (Dlg): void DoDataExchange (CDataExchange * pDX);// DDX/DDV support
//}} AFX_VIRTUAL
//Implementation:
//Generated message map functions
//{{AFX_MSG (Dlg) _msg void OnOpenDb (); _ msg void OnZaprosMake (); _ msg void OnZaprosSelect (); _ msg void OnFind (); _ msg void OnGraf (); _ msg void OnDohodOtUslug ( ); _ msg void OnDohodPoDnyam (); _ msg void OnDohodSotrPodnyam (); _ msg void OnAllDohodSotr (); _ msg void OnSelchangeTable (); _ msg void OnSelchangePolya (); _ msg void OnFirst (); _ msg void OnLeft (); _ msg void OnRight (); _msg void OnLast (); _ msg void OnSort ();
//}} AFX_MSG_MESSAGE_MAP ()
};
//{{AFX_INSERT_LOCATION}}
//Microsoft Visual C ++ will insert additional declarations immediately before the previous line.
# endif //! defined (AFX_DLG_H__30EEC067_937F_4A1E_AF57_5C9ED66CE085__INCLUDED _)
Додаток G
. cpp
# include stdafx.h
# include kursovaya.h
# include MainFrm.h
# ifdef _DEBUG
# define new DEBUG_NEW
# undef THIS_FILEchar THIS_FILE []=__FILE __;
# endif_DYNCREATE (CMainFrame, CFrameWnd) _MESSAGE_MAP (CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP (CMainFrame) _WM_CREATE ()
//}} AFX_MSG_MAP_MESSAGE_MAP () UINT indicators []=
{_ SEPARATOR,//status line indicator_INDICATOR_CAPS, _INDICATOR_NUM, _INDICATOR_SCRL,
}; :: CMainFrame ()
{= 0;=
{(PIXELFORMATDESCRIPTOR),//size of this pfd
,//version number_DRAW_TO_WINDOW |//support window_SUPPORT_OPENGL |//support OpenGL_DOUBLEBUFFER,//double buffered_TYPE_RGBA,//RGBA type
,//24-bit color depth
, 0, 0, 0, 0, 0,//color bits ignored
,//no alpha buffer
,//shift bit ignored
,//no accumulation buffer
, 0, 0, 0,//accum bits ignored
,//32-bit z-buffer
,//no stencil buffer
,//no auxiliary buffer_MAIN_PLANE,//main layer
,//reserved
, 0, 0//layer masks ignored
};=pfd1;//TODO: add member initialization code here
} :: ~ CMainFrame ()
{
} CMainFrame :: OnCreate (LPCREATESTRUCT lpCreateStruct)
{(CFrameWnd :: OnCreate (lpCreateStruct) == - 1) - 1; (! m_wndToolBar.CreateEx (this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
! m_wndToolBar.LoadToolBar (IDR_MAINFRAME))
{( Failed to create toolbar n );- 1;// Fail to create
} (! m_wndStatusBar.Create (this) ||
! m_wndStatusBar.SetIndicators (indicators, (indicators)/sizeof (UINT)))
{( Failed to create status bar n );- 1;// Fail to create
}_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);(CBRS_ALIGN_ANY);(amp;m_wndToolBar);0;
} CMainFrame :: PreCreateWindow (CREATESTRUCT amp; cs)
{(! CFrameWnd :: PreCreateWindow (cs)) FALSE;
//TODO: Modify the Window class or styles here by modifying
//the CREATESTRUCT csTRUE;
}
//CMainFrame diagnostics
# ifdef _DEBUGCMainFrame :: AssertValid () const
{:: AssertValid ();
} CMainFrame :: Dump (CDumpContext amp; dc) const
{:: Dump (dc);
}
# endif//_ DEBUG
Додаток H