Click here to Skip to main content
13,298,451 members (66,034 online)
Click here to Skip to main content


39 bookmarked
Posted 16 Nov 1999

Date-Time Conversion Utility

, 21 Sep 2001
A simple app that converts to and between time_t, DATE, and regular date string expressions
#if !defined(AFX_DLGOPTIONS_H__C89A1A26_883B_11D5_A116_000000000000__INCLUDED_)
#define AFX_DLGOPTIONS_H__C89A1A26_883B_11D5_A116_000000000000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgOptions.h : header file

// CDlgOptions dialog

class CDlgOptions : public CDialog
// Construction
	CDlgOptions(CWnd* pParent = NULL);   // standard constructor
  void SetAutoPaste(int iAutoPaste)       { m_iAutoPaste = iAutoPaste;  }
  int  GetAutoPaste(void)                 { return m_iAutoPaste;    }
  void SetAutoConvert(BOOL bAutoConvert)  { m_bAutoConvert = bAutoConvert;  }
  BOOL GetAutoConvert(void)               { return m_bAutoConvert;  }
  void SetFullAutoConvert(int iAutoConv)  { m_iAutoConvert = iAutoConv; }
  int  GetFullAutoConvert(void)           { return m_iAutoConvert;  }

// Dialog Data
	enum { IDD = IDD_OPTIONS };
	CButton	m_rdNoAutoConvert;
  CButton	m_rdAutoConvertTimeT;
  CButton m_rdAutoConvertDate;
  CButton m_rdAutoConvertString;
  CButton m_rdAutoConvertSpan;
  CButton m_rdAutoConvertTotalSec;
	CButton	m_chkAutoConvert;
	int		m_iAutoPaste;
	BOOL	m_bAutoConvert;
	int		m_iAutoConvert;

// Overrides
	// ClassWizard generated virtual function overrides
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

// Implementation

	// Generated message map functions
	afx_msg void OnApply();
	virtual BOOL OnInitDialog();
	afx_msg void OnRdNoAutoPaste();

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGOPTIONS_H__C89A1A26_883B_11D5_A116_000000000000__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Alvaro Mendez
Web Developer
United States United States
I've done extensive work with C++, MFC, COM, and ATL on the Windows side. On the Web side, I've worked with VB, ASP, JavaScript, and COM+. I've also been involved with server-side Java, which includes JSP, Servlets, and EJB, and more recently with ASP.NET/C#.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171207.1 | Last Updated 22 Sep 2001
Article Copyright 1999 by Alvaro Mendez
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid