?? 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 + -