dlgclip.cpp
来自「栅格矢量转换的dll,vc+ao写的」· C++ 代码 · 共 68 行
CPP
68 行
// DlgClip.cpp : implementation file
//
#include "stdafx.h"
#include "AoConvert.h"
#include "DlgClip.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlgClip dialog
CDlgClip::CDlgClip(CWnd* pParent /*=NULL*/)
: CDialog(CDlgClip::IDD, pParent)
{
strShpPath = "";
strRasterPath = "";
strOutPath = "";
}
void CDlgClip::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgClip)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlgClip, CDialog)
//{{AFX_MSG_MAP(CDlgClip)
ON_BN_CLICKED(IDC_BUTTON1, OnViewShp)
ON_BN_CLICKED(IDC_RasterView, OnRasterView)
ON_BN_CLICKED(IDC_ClipShp, OnClipShp)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDlgClip message handlers
void CDlgClip::OnViewShp()
{
strShpPath = gGetShpPath();
GetDlgItem(IDC_EDIT1)->SetWindowText(strShpPath);
}
void CDlgClip::OnRasterView()
{
strRasterPath = gGetRasterPath();
GetDlgItem(IDC_EDIT2)->SetWindowText(strRasterPath);
}
void CDlgClip::OnClipShp()
{
strOutPath = gGetFilePath();
GetDlgItem(IDC_EDIT3)->SetWindowText(strOutPath);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?