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

📄 savebitmap.cpp

📁 用Visual C++编写的地震记录显示程序
💻 CPP
字号:
// SaveBitMap.cpp : implementation file
//

#include "stdafx.h"
#include "showsgy.h"
#include "SaveBitMap.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSaveBitMap dialog


CSaveBitMap::CSaveBitMap(CWnd* pParent /*=NULL*/)
	: CDialog(CSaveBitMap::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSaveBitMap)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CSaveBitMap::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSaveBitMap)
	DDX_Control(pDX, IDC_EDIT_BitMapFileName, m_ControlSaveBitMap);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSaveBitMap, CDialog)
	//{{AFX_MSG_MAP(CSaveBitMap)
	ON_EN_CHANGE(IDC_EDIT_BitMapFileName, OnChangeEDITBitMapFileName)
	ON_BN_CLICKED(IDC_BUTTON_SaveBitmap, OnBUTTONSaveBitmap)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSaveBitMap message handlers

void CSaveBitMap::OnChangeEDITBitMapFileName() 
{
	// TODO: Add your control notification handler code here
	char ss[200];
	m_ControlSaveBitMap.GetLine(1,ss,200);
	BitMapFileName=CString(ss);
	
}

void CSaveBitMap::OnBUTTONSaveBitmap() 
{
	// TODO: Add your control notification handler code here
	CString lpszFilter="位图文件(*.bmp)|*.bmp||";
	CFileDialog dlg(TRUE,NULL,"*.bmp",OFN_LONGNAMES,lpszFilter);
	if(dlg.DoModal()==IDOK)
	{
		BitMapFileName=dlg.GetPathName();
		UpdateData(FALSE);
	}
	else
		return;
}

⌨️ 快捷键说明

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