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

📄 kl.cpp

📁 KL变换的实现
💻 CPP
字号:
// KL.cpp : implementation file
//

#include "stdafx.h"
#include "KLchange.h"
#include "KL.h"
#include "CDib.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// KL dialog


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


void KL::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(KL)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(KL, CDialog)
	//{{AFX_MSG_MAP(KL)
	ON_BN_CLICKED(IDC_input, Oninput)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// KL message handlers

void KL::Oninput() 
{
/*	CFileDialog dlg(TRUE,"bmp",".bmp");
	if(dlg.DoModal()==IDOK)
	{
		m_NewFileName=dlg.GetPathName();
	}
	CFile f(m_NewFileName,0);	
	m_pDib.Read(&f);
	CSize sizeDibDisplay;
	CPaintDC dc(this); 

	CDC *pDC = GetWindowDC();
	if(!m_pDib.IsEmpty())
	{	
		sizeDibDisplay = m_pDib.GetDimensions();
		m_pDib.Draw(pDC,CPoint(0,0),sizeDibDisplay);
	}*/
}

⌨️ 快捷键说明

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