deccompdlg.cpp
来自「可以选择各种压缩方式对读入的图像进行压缩和解压」· C++ 代码 · 共 56 行
CPP
56 行
// DecCompDlg.cpp : implementation file
//
#include "stdafx.h"
#include "JPEGEQ.h"
#include "DecCompDlg.h"
// DecCompDlg dialog
IMPLEMENT_DYNAMIC(DecCompDlg, CDialog)
DecCompDlg::DecCompDlg(CWnd* pParent /*=NULL*/)
: CDialog(DecCompDlg::IDD, pParent)
, dstfilepath(_T(""))
{
}
DecCompDlg::~DecCompDlg()
{
}
void DecCompDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_EDIT1, dstfilepath);
}
BEGIN_MESSAGE_MAP(DecCompDlg, CDialog)
ON_BN_CLICKED(IDC_DECBUTTON1, &DecCompDlg::OnBnClickedDecbutton1)
END_MESSAGE_MAP()
// DecCompDlg message handlers
void DecCompDlg::OnBnClickedDecbutton1()
{
// TODO: Add your control notification handler code here
UpdateData();
CString temp="mjp压缩文件 (*.mjp) | *.mjp|所有文件 (*.*) | *.*||";
CFileDialog dlg(TRUE, "mjp", dstfilepath, OFN_HIDEREADONLY,
temp, NULL);
if (dlg.DoModal() != IDOK)
{
// 返回
return;
}
dstfilepath = dlg.GetPathName();
// 更新
UpdateData(FALSE);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?