Projects > PC Alarm Project > Alarm31Dlg.h

Home | Projects | Links

 

PC Alarm PROJECT

  

Alarm31Dlg.h    Alarm31Dlg.cpp

Download  PCAlarm Setup (1.12 MB)        Download VC++ 7.0 Project (2.01 MB RAR Archive)        PC Alarm Help


 

// alarm3Dlg.h : header file

//

 

#pragma once

 

 

// Calarm31Dlg dialog

class Calarm31Dlg : public CDialog

{

// Construction

public:

      Calarm31Dlg(CWnd* pParent = NULL);  // standard constructor

 

// Dialog Data

      enum { IDD = IDD_ALARM31_DIALOG };

 

      protected:

      virtual void DoDataExchange(CDataExchange* pDX);      // DDX/DDV support

 

 

// Implementation

protected:

      HICON m_hIcon;

     

//=================================================================

      //Variables to hold current time:

      CTime current_time;

 

      UINT current_hour;

      UINT current_minute;

      UINT current_second;

 

      //Alarm time:

      UINT ring_hour;

      UINT ring_minute;

 

      //Total duration of ringing, not to exceed max. value (3600000 ms)

      UINT total_ring_time;

 

      //User selected tune:

      UINT sound_selection;

     

      //Text buffer:

      char outstrg[200];

    ostrstream outstrm;

     

      //Indicator icons:

      CBitmap AlarmSetBitmap;

      CBitmap AlarmNotSetBitmap;

 

      CWnd * BtmPct;

    CDC membpDC;

     

      //Dialog controls & other objects:

      CStatic * pSt_Curr_Time;

      CStatic * pSt_Status;

 

      CEdit * pRHEdit;

      CEdit * pRMEdit;

 

      CSpinButtonCtrl * pRHSpin;

      CSpinButtonCtrl * pRMSpin;

 

      CButton * pBSet;

      CButton * pBChange;

      CButton * pBSNOOZE;

      CButton * pBSTOP;

      CButton * pBTestSound;

 

      CComboBox * pCBSoundSelection;

 

      //Timers:

      UINT _SysTimer;

      UINT _AlarmTimer;

      UINT _RingTimer;

      UINT _TestTimer;

      UINT _SnoozeTimer;

 

//=================================================================

      // Generated message map functions

      virtual BOOL OnInitDialog();

      afx_msg void OnPaint();

      afx_msg HCURSOR OnQueryDragIcon();

//=================================================================

      BOOL PreTranslateMessage(MSG * pMsg);

      afx_msg void OnClose();

      afx_msg void OnTimer(UINT_PTR nIDEvent);

     

      afx_msg void SetAlarmTime();

      afx_msg void ChangeAlarmTime();

      afx_msg void Ring();

      afx_msg void Snooze();

      afx_msg void StopRing();

      afx_msg void TestSound();

 

      afx_msg void ChangeSoundSelection();

 

//=================================================================

      DECLARE_MESSAGE_MAP()

};

 

 


Alarm31Dlg.h    Alarm31Dlg.cpp

Download  PCAlarm Setup (1.12 MB)        Download VC++ 7.0 Project (2.01 MB RAR Archive)        PC Alarm Help

 

Get WinRAR

 

 

Copyright © Yuri Bulankov 2003

 

Bugs/Comments: code@compilerabuse.com

Copyright (C) 2001-2006 Yuri Bulankov. All rights reserved.