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

📄 dlgclip.cpp

📁 栅格矢量转换的dll,vc+ao写的
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -