⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 movefile.cpp

📁 智能阅读器       阅读器(运行于WINCE平台):阅读器满足一般现实中阅读书籍时的需求
💻 CPP
字号:
// MoveFile.cpp : implementation file
//

#include "stdafx.h"
#include "WinCEJob.h"
#include "MoveFile.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMoveFile dialog


CMoveFile::CMoveFile(CWnd* pParent /*=NULL*/)
	: CDialog(CMoveFile::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMoveFile)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CMoveFile::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMoveFile)
	DDX_Control(pDX, IDC_COMBO1, m_combo);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMoveFile, CDialog)
	//{{AFX_MSG_MAP(CMoveFile)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMoveFile message handlers

void CMoveFile::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

BOOL CMoveFile::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_combo.AddString(L"Novel");
	m_combo.AddString(L"Study");
	m_combo.SetCurSel(0);
	m_combo.SetCurSel(0);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CMoveFile::OnButton1() 
{
	// TODO: Add your control notification handler code here
//	MoveFile();Windows\\WinCEReader\\Sort
	CString str;
	
	m_folder.Format(L"\\%s\\%s", m_folder, m_filename);
	if(m_combo.GetCurSel()==0)
	{
		str.Format(L"\\Windows\\WinCEReader\\Sort\\Novel\\%s", m_filename);
		MoveFile(m_folder, str);
	}
	else
	{
		str.Format(L"\\Windows\\WinCEReader\\Sort\\Study\\%s", m_filename);
		MoveFile(m_folder, str);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -