// DlgZoomIn.cpp : implementation file
//

#include "stdafx.h"
#include "NetSdkDemo.h"
#include "DlgZoomIn.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgZoomIn dialog
CDlgZoomIn::CDlgZoomIn(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgZoomIn::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgZoomIn)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	m_lChnHandle = 0;
}


void CDlgZoomIn::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgZoomIn)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgZoomIn, CDialog)
	//{{AFX_MSG_MAP(CDlgZoomIn)
	ON_WM_DESTROY()
	ON_WM_CREATE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgZoomIn message handlers

void CDlgZoomIn::OnDestroy() 
{
	CDialog::OnDestroy();
	
	// TODO: Add your message handler code here
	if(m_lChnHandle)
	{
		MRNSDK_ZoomInPicture(m_lChnHandle, m_hWnd, 0, 0, 0, 0, 0);
	}
}

int CDlgZoomIn::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CDialog::OnCreate(lpCreateStruct) == -1)
		return -1;
	
	// TODO: Add your specialized creation code here
	if(m_lChnHandle)
	{
		MRNSDK_ZoomInPicture(m_lChnHandle, m_hWnd, 0, 0, 0, 10, 10);
	}
	
	return 0;
}
