// cflict.cpp : implementation file
//

#include "stdafx.h"
#include "sutl.h"
#include "cflict.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// cflict dialog


cflict::cflict(CWnd* pParent /*=NULL*/)
	: CDialog(cflict::IDD, pParent)
{
	//{{AFX_DATA_INIT(cflict)
	m_choice = 0;
	m_opt1 = _T("");
	m_opt2 = _T("");
	m_opt3 = _T("");
	m_opt4 = _T("");
	//}}AFX_DATA_INIT
}

void cflict::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(cflict)
	DDX_Radio(pDX, IDC_CHOICE1, m_choice);
	DDX_Text(pDX, IDC_OPT1, m_opt1);
	DDX_Text(pDX, IDC_OPT2, m_opt2);
	DDX_Text(pDX, IDC_OPT3, m_opt3);
	DDX_Text(pDX, IDC_OPT4, m_opt4);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(cflict, CDialog)
	//{{AFX_MSG_MAP(cflict)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// cflict message handlers

VOID cflict::SetupLabels(
CHAR *mdfnam1,
CHAR *modnam1,
CHAR *devnam1,
CHAR *mdfnam2,
CHAR *modnam2,
CHAR *devnam2)
{
     CHAR tmp[25];

     m_opt1="Disable the \"";
     m_opt1+=modnam1;
     m_opt1+="\" module from ";
     m_opt1+=devnam1;

     sprintf(tmp,"%.3s_",mdfnam1);
     m_opt2="Rename the \"";
     m_opt2+=modnam1;
     m_opt2+="\" module from ";
     m_opt2+=devnam1;
     m_opt2+=" to \"";
     m_opt2+=tmp;
     m_opt2+=modnam1;
     m_opt2+="\"";

     m_opt3="Disable the \"";
     m_opt3+=modnam2;
     m_opt3+="\" module from ";
     m_opt3+=devnam2;

     sprintf(tmp,"%.3s_",mdfnam2);
     m_opt4="Rename the \"";
     m_opt4+=modnam2;
     m_opt4+="\" module from ";
     m_opt4+=devnam2;
     m_opt4+=" to \"";
     m_opt4+=tmp;
     m_opt4+=modnam2;
     m_opt4+="\"";
}