chooseworkmode.cpp 1.16 KB
// chooseworkmode.cpp : implementation file
//

#include "stdafx.h"
#include "sn writer.h"
#include "chooseworkmode.h"

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

/////////////////////////////////////////////////////////////////////////////
// Cchooseworkmode dialog


Cchooseworkmode::Cchooseworkmode(CWnd* pParent /*=NULL*/)
	: CDialog(Cchooseworkmode::IDD, pParent)
{
	//{{AFX_DATA_INIT(Cchooseworkmode)
	mycurindex = -1;
	//}}AFX_DATA_INIT
}


void Cchooseworkmode::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Cchooseworkmode)
	DDX_Control(pDX, IDC_COMBO2, mylist);
	DDX_CBIndex(pDX, IDC_COMBO2, mycurindex);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// Cchooseworkmode message handlers

BOOL Cchooseworkmode::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	mylist.SetCurSel(0);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}