📄 dispzoom.cpp
字号:
// DispZoom.cpp : implementation file
//
#include "stdafx.h"
#include "bxt.h"
#include "DispZoom.h"
#include "bxtdlg.h"
#include "imageprocess.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// DispZoom dialog
DispZoom::DispZoom(CWnd* pParent /*=NULL*/)
: CDialog(DispZoom::IDD, pParent)
{
//{{AFX_DATA_INIT(DispZoom)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void DispZoom::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(DispZoom)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(DispZoom, CDialog)
//{{AFX_MSG_MAP(DispZoom)
ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
ON_BN_CLICKED(IDC_BUTTON9, OnButton9)
ON_BN_CLICKED(IDC_BUTTON5, OnButton5)
ON_BN_CLICKED(IDC_BUTTON6, OnButton6)
ON_BN_CLICKED(IDC_BUTTON7, OnButton7)
ON_BN_CLICKED(IDC_BUTTON8, OnButton8)
ON_NOTIFY(NM_RELEASEDCAPTURE, IDC_SLIDER1, OnReleasedcaptureSlider1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// DispZoom message handlers
void DispZoom::OnButton1()
{
((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPZOOM, 1, 0);//1 x
}
void DispZoom::OnButton2()
{
((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPZOOM, 2, 0);//1 x
}
void DispZoom::OnButton3()
{
((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPZOOM, 3, 0);//1 x
}
void DispZoom::OnButton4()
{
((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPZOOM, 4, 0);//1 x
}
void DispZoom::OnButton9()
{
((CBxtDlg*)AfxGetMainWnd())->imgpcs->SendMessage(WX_DSPZOOM, 0, 0);//1 x
}
void DispZoom::OnButton5()
{
}
void DispZoom::OnButton6()
{
}
void DispZoom::OnButton7()
{
}
void DispZoom::OnButton8()
{
}
void DispZoom::OnReleasedcaptureSlider1(NMHDR* pNMHDR, LRESULT* pResult)
{
// AfxMessageBox("OnReleasedcaptureSlider1");
*pResult = 1;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -