📄 movefile.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 + -