61 lines
1.2 KiB
C++
61 lines
1.2 KiB
C++
// ZoomDlg.cpp : implementation file
|
|
//
|
|
#include "stdafx.h"
|
|
|
|
#include "ZoomDlg.h"
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
#define new DEBUG_NEW
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CZoomDlg dialog
|
|
|
|
|
|
CZoomDlg::CZoomDlg(CWnd* pParent /*=NULL*/)
|
|
: CDialog(CZoomDlg::IDD, pParent)
|
|
{
|
|
//{{AFX_DATA_INIT(CZoomDlg)
|
|
//}}AFX_DATA_INIT
|
|
//m_pParent=pParent;
|
|
}
|
|
|
|
|
|
void CZoomDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
//{{AFX_DATA_MAP(CZoomDlg)
|
|
//}}AFX_DATA_MAP
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CZoomDlg, CDialog)
|
|
//{{AFX_MSG_MAP(CZoomDlg)
|
|
// ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
|
|
ON_WM_PAINT()
|
|
//ON_WM_CLOSE()
|
|
//}}AFX_MSG_MAP
|
|
END_MESSAGE_MAP()
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CZoomDlg message handlers
|
|
BOOL CZoomDlg::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
SetWindowText(m_strDiscript);
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
|
|
|
|
void CZoomDlg::OnPaint()
|
|
{
|
|
CPaintDC dc(this); // device context for painting
|
|
CWnd *pWnd = GetDlgItem(IDC_STATIC_PREVIEW);
|
|
DrawSlide((const TCHAR*)m_strPathSlideName, pWnd);
|
|
}
|