92 lines
2.5 KiB
C++
92 lines
2.5 KiB
C++
#if !defined(AFX_DLGSCHEDMARKERS_H__EA79FE52_81E9_4C2A_8177_1E8070B8BAC6__INCLUDED_)
|
|
#define AFX_DLGSCHEDMARKERS_H__EA79FE52_81E9_4C2A_8177_1E8070B8BAC6__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// DlgSchedMarkers.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgSchedMarkers dialog
|
|
#include "gzrset.h"
|
|
#include "label.h"
|
|
#include "gzlistbox.h"
|
|
#include "gzcombo.h"
|
|
|
|
class CDlgSchedMarkers : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
void FillFields();
|
|
CString m_strSelectedItem;
|
|
void SaveRecord(bool bNew);
|
|
long m_lRed;
|
|
long m_lGreen;
|
|
long m_lBlue;
|
|
void FillMarkerList();
|
|
void FillAppliesToList();
|
|
~CDlgSchedMarkers();
|
|
CDlgSchedMarkers(CWnd* pParent = NULL); // standard constructor
|
|
|
|
CSpApp* m_pApp;
|
|
GZRset* rs;
|
|
bool m_bAddMode;
|
|
// Dialog Data
|
|
//{{AFX_DATA(CDlgSchedMarkers)
|
|
enum { IDD = IDD_SCHED_MARKERS };
|
|
CButton m_btnColor;
|
|
CButton m_btnRefresh;
|
|
CButton m_btnDone;
|
|
CButton m_btnAdd;
|
|
CgzListBox m_lsMarkers;
|
|
CLabel m_lblSample;
|
|
CEdit m_edNotes;
|
|
CDateTimeCtrl m_dtStartTime;
|
|
CDateTimeCtrl m_dtEndTime;
|
|
CDateTimeCtrl m_dtStartDate;
|
|
CDateTimeCtrl m_dtEndDate;
|
|
CgzCombo m_cbAppliesTo;
|
|
CButton m_btnDelete;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CDlgSchedMarkers)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CDlgSchedMarkers)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnBtndone();
|
|
virtual void OnOK();
|
|
afx_msg void OnSelchangeLstmarkers();
|
|
afx_msg void OnBtncolor();
|
|
afx_msg void OnKillfocusEdnotes();
|
|
afx_msg void OnDatetimechangeDtstart(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnDatetimechangeDtend(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnCloseupCbappliesto();
|
|
afx_msg void OnBtnadd();
|
|
afx_msg void OnKillfocusDttstart(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnKillfocusDttend(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnBtnrefresh();
|
|
afx_msg void OnBtndel();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
private:
|
|
bool m_bReadOnly;
|
|
void Security();
|
|
void EnableFields(bool bEnable);
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_DLGSCHEDMARKERS_H__EA79FE52_81E9_4C2A_8177_1E8070B8BAC6__INCLUDED_)
|