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

📄 deccompdlg.cpp

📁 可以选择各种压缩方式对读入的图像进行压缩和解压
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -