Return to ReStart Setup Program Source Code
// RSsetupDlg.h : header file
//
// Copyright © 1999 - 2000 - 2005 Richard A. Ellingson
// http://www.createwindow.com
// mailto:CreateWindow.com@comcast.net

#if !defined(AFX_RSSETUPDLG_H__8D84CBC6_A447_11D3_96B1_00A0CC52C86A__INCLUDED_)
#define AFX_RSSETUPDLG_H__8D84CBC6_A447_11D3_96B1_00A0CC52C86A__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CRSsetupDlg dialog

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

// Dialog Data
     //{{AFX_DATA(CRSsetupDlg)
     enum { IDD = IDD_RSSETUP_DIALOG };
     CButton     m_ctlEnableBtn; // Enable/Disable button caption
     CString     m_csContents; // Edit box text
     int          m_nShortcut; // Radio buttons
     CString     m_csURL;
     //}}AFX_DATA

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

// Implementation
protected:
// ******* Begin custom code *******

     void Read_DosStart();
     CString Get_Desktop_Path();
     void Create_Shutdown_Shortcut();
     void Create_ReBoot_Shortcut();
     void Create_ReStart_Shortcut();
     void Write_DosStart();
     CString m_csDisable;
     void Disable_DosStart();
     void Enable_DosStart();
     CString Get_DosStart_Path();
     afx_msg void OnCheckDosStart(WPARAM wparam, LPARAM lparam);
     afx_msg BOOL OnToolTipNotify(UINT id, NMHDR *pNMHDR, LRESULT *pResult);

// ******* End custom code *******
     HICON m_hIcon;

     // Generated message map functions
     //{{AFX_MSG(CRSsetupDlg)
     virtual BOOL OnInitDialog();
     afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
     afx_msg void OnDestroy();
     afx_msg void OnEnable(); // Handler for Enable/Disable button
     afx_msg void OnCreate(); // Handler for Create button
     virtual void OnCancel(); // Handler for Close messages
     afx_msg HCURSOR OnQueryDragIcon();
     afx_msg void OnPaint();
     afx_msg void OnAppAbout();
     afx_msg void OnHelp(); // Handler for Help button
     //}}AFX_MSG
     DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_RSSETUPDLG_H__8D84CBC6_A447_11D3_96B1_00A0CC52C86A__INCLUDED_)