pic_256_dlg.cpp

来自「基于变换域的信息隐藏技术」· C++ 代码 · 共 57 行

CPP
57
字号
// PIC_256_DLG.cpp : implementation file
//

#include "stdafx.h"
#include "数字水印技术.h"
#include "PIC_256_DLG.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPIC_256_DLG dialog


CPIC_256_DLG::CPIC_256_DLG(CWnd* pParent /*=NULL*/)
	: CDialog(CPIC_256_DLG::IDD, pParent)
{
	//{{AFX_DATA_INIT(CPIC_256_DLG)
	m_spathname = _T("");
	//}}AFX_DATA_INIT
}


void CPIC_256_DLG::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPIC_256_DLG)
	DDX_Text(pDX, IDC_EDIT1, m_spathname);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CPIC_256_DLG, CDialog)
	//{{AFX_MSG_MAP(CPIC_256_DLG)
	ON_BN_CLICKED(IDC_PIC_LIULAN_256, OnPicLiulan256)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPIC_256_DLG message handlers

void CPIC_256_DLG::OnPicLiulan256() 
{
	// TODO: Add your control notification handler code here
	UpdateData(true);
	bool flag=1;
	CFileDialog dlg(flag,"bmp","*.bmp");
     if(dlg.DoModal()==IDOK)
	m_spathname=dlg.GetPathName();

	UpdateData(false);
	
}

⌨️ 快捷键说明

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