/**
* \file ConfigDlg.cpp
*
* \brief Implementation file for class CConfigDlg
*
* $Id: ConfigDlg.cpp, v1.1.1.1 2006/09/24 23:12:29 mgh Exp $
*
*
* Copyright (C) 2006 Michael G. Herstine <sp1ff@pobox.com>
*
* Permission to use, copy, or modify this source code is hereby granted
* free of charge, provided that this copyright notice appear on all
* copies and on all source code derived from this code. No
* representation is made regarding the suitability of this software for
* any purpose. It is provided "as is" without express or implied
* warranty.
*
*
*/
////////////////////////////////////////////////////////////////////////////
// Modified by Jordan Walters, 01.03.2008 for multi-IDE version increment //
////////////////////////////////////////////////////////////////////////////
#include "StdAfx.h" // Pre-compiled header
#include "AddIn.h" // Project header
#include "ConfigDlg.h" // For class CConfigDlg
////////////////////////////////////////////////////////////////////////
CConfigDlg::CConfigDlg()
{
m_dwDigit = DEF_DIGIT;
m_bResetLowerVersions = DEF_RESET;
m_bRevertToBuildNumber = DEF_REVERT;
m_bDisplayWarnings = DEF_DISPLAY_WARNINGS;
}
CConfigDlg::~CConfigDlg()
{
}
LRESULT CConfigDlg::OnInitDialog(UINT /*nMsg*/,
WPARAM wParam,
LPARAM lParam,
BOOL &bHandled)
{
CDlgMixin<CConfigDlg>::OnInitDialog(wParam, lParam, bHandled);
return 1L; // Let the system set the focus
}
LRESULT CConfigDlg::OnClickedOK(WORD /*wNotifyCode*/,
WORD wID,
HWND /*hWndCtl*/,
BOOL& /*bHandled*/)
{
CDlgMixin<CConfigDlg>::OnClickedOK();
setOptionsToReg(m_dwDigit, m_bResetLowerVersions, m_bRevertToBuildNumber, m_bDisplayWarnings);
EndDialog(wID);
return 0L;
}
LRESULT CConfigDlg::OnClickedCancel(WORD /*wNotifyCode*/,
WORD wID,
HWND /*hWndCtl*/,
BOOL& /*bHandled*/)
{
EndDialog(wID);
return 0L;
}
LRESULT CConfigDlg::OnClickedVersion(WORD /*wNotifyCode*/,
WORD /*wID*/,
HWND /*hWndCtl*/,
BOOL& /*bHandled*/)
{
return CDlgMixin<CConfigDlg>::OnClickedVersion();
}
LRESULT CConfigDlg::OnClickedStatusMajorVersion(WORD /*wNotifyCode*/,
WORD /*wID*/,
HWND /*hWndCtl*/,
BOOL& /*bHandled*/)
{
return CDlgMixin<CConfigDlg>::OnClickedStatusMajorVersion();
}
LRESULT CConfigDlg::OnClickedStatusMinorVersion(WORD /*wNotifyCode*/,
WORD /*wID*/,
HWND /*hWndCtl*/,
BOOL& /*bHandled*/)
{
return CDlgMixin<CConfigDlg>::OnClickedStatusMinorVersion();
}
LRESULT CConfigDlg::OnClickedStatusRevision(WORD /*wNotifyCode*/,
WORD /*wID*/,
HWND /*hWndCtl*/,
BOOL& /*bHandled*/)
{
return CDlgMixin<CConfigDlg>::OnClickedStatusRevision();
}
LRESULT CConfigDlg::OnClickedStatusBuildNumber(WORD /*wNotifyCode*/,
WORD /*wID*/,
HWND /*hWndCtl*/,
BOOL& /*bHandled*/)
{
return CDlgMixin<CConfigDlg>::OnClickedStatusBuildNumber();
}
// Local Variables:
// fill-column: 72
// indent-tabs-mode: nil
// show-trailing-whitespace: t
// End:
// ConfigDlg.cpp ends here.