fileopen.cpp
来自「基于变换域的信息隐藏技术」· C++ 代码 · 共 57 行
CPP
57 行
// fileOpen.cpp : implementation file
//
#include "stdafx.h"
#include "数字水印技术.h"
#include "fileOpen.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CfileOpen dialog
CfileOpen::CfileOpen(CWnd* pParent /*=NULL*/)
: CDialog(CfileOpen::IDD, pParent)
{
//{{AFX_DATA_INIT(CfileOpen)
m_sfilename = _T("");
//}}AFX_DATA_INIT
}
void CfileOpen::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CfileOpen)
DDX_Text(pDX, IDC_EDIT1, m_sfilename);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CfileOpen, CDialog)
//{{AFX_MSG_MAP(CfileOpen)
ON_BN_CLICKED(IDC_BUTTONfile, OnBUTTONfile)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CfileOpen message handlers
void CfileOpen::OnBUTTONfile()
{
// TODO: Add your control notification handler code here
UpdateData(true);
bool flag=1;
CFileDialog dlg(flag,"txt","*.txt");
if(dlg.DoModal()==IDOK)
m_sfilename=dlg.GetPathName();
UpdateData(false);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?