68 lines
1.7 KiB
C++
68 lines
1.7 KiB
C++
// PageIni.h : Declaration of the CPageIni
|
|
|
|
#ifndef __PAGESTARTUP_H_
|
|
#define __PAGESTARTUP_H_
|
|
|
|
#include "resource.h" // main symbols
|
|
#include <atlhost.h>
|
|
#include "msconfigstate.h"
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CPageIni
|
|
class CPageStartup :
|
|
public CAxDialogImpl<CPageStartup>
|
|
{
|
|
public:
|
|
CPageStartup()
|
|
{
|
|
}
|
|
|
|
~CPageStartup()
|
|
{
|
|
}
|
|
|
|
enum { IDD = IDD_PAGESTARTUP };
|
|
|
|
BEGIN_MSG_MAP(CPageIni)
|
|
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
|
|
END_MSG_MAP()
|
|
// Handler prototypes:
|
|
// LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
|
// LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
|
|
// LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
|
|
|
|
private:
|
|
CString m_strCaption; // contains the localized name of this page
|
|
|
|
public:
|
|
//-------------------------------------------------------------------------
|
|
// Functions used by the parent dialog.
|
|
//-------------------------------------------------------------------------
|
|
|
|
BOOL IsValid(CMSConfigState * state)
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
LPCTSTR GetCaption()
|
|
{
|
|
if (m_strCaption.IsEmpty())
|
|
{
|
|
::AfxSetResourceHandle(_Module.GetResourceInstance());
|
|
m_strCaption.LoadString(IDS_STARTUP_CAPTION);
|
|
}
|
|
return m_strCaption;
|
|
}
|
|
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
|
|
{
|
|
::EnableWindow(GetDlgItem(IDC_BUTTONSUENABLEALL), FALSE);
|
|
::EnableWindow(GetDlgItem(IDC_BUTTONSUDISABLEALL), FALSE);
|
|
::EnableWindow(GetDlgItem(IDC_BUTTONSUDISVIRUS), FALSE);
|
|
::EnableWindow(GetDlgItem(IDC_BUTTONSUCLEANUP), FALSE);
|
|
::EnableWindow(GetDlgItem(IDC_LISTSTARTUP), FALSE);
|
|
return 0;
|
|
}
|
|
};
|
|
|
|
#endif //__PAGESTARTUP_H_
|