Click here to Skip to main content
15,884,838 members
Articles / Desktop Programming / MFC

Sunrise/Sunset Calculations

Rate me:
Please Sign up or sign in to vote.
4.12/5 (12 votes)
14 Dec 2000 171.7K   5.4K   32  
Code to help calculate sunrise and sunset times
// SRSSTESTDlg.h : header file
//

#if !defined(AFX_SRSSTESTDLG_H__F5910B6B_5802_11D4_81CE_00A0C9723090__INCLUDED_)
#define AFX_SRSSTESTDLG_H__F5910B6B_5802_11D4_81CE_00A0C9723090__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "TrayIcon.h"

/////////////////////////////////////////////////////////////////////////////
// CSRSSTESTDlg dialog

class CSRSSTESTDlg : public CDialog
{
// Construction
public:
	CSRSSTESTDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CSRSSTESTDlg)
	enum { IDD = IDD_SRSSTEST_DIALOG };
	CString	m_SR;
	CString	m_SS;
	CString	m_SN;
	double	m_dLat;
	double	m_dLon;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSRSSTESTDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSRSSTESTDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButton1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()


	CTrayIcon m_Tray;
};

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

#endif // !defined(AFX_SRSSTESTDLG_H__F5910B6B_5802_11D4_81CE_00A0C9723090__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.


Written By
Software Developer Birdsoft
United States United States
Software Engineer with years of Visual C++ and Objective-C
experience.

Developed Windows Mobile applications including All-In Hold 'Em, Extreme Agenda, and The Dog Ate It.

Now mostly iOS development with the popular title Extreme Agenda as a flagship.

Comments and Discussions