cvisionDlg.cpp in OpenCVL.rar
Sponsored links
// cvisionDlg.cpp : implementation file
//
#include "stdafx.h"
#include "cvision.h"
#include "cvisionDlg.h"
#include "cvapp.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCvisionDlg dialog
CCvisionDlg::CCvisionDlg(CWnd* pParent /*=NULL*/)
: CDialog(CCvisionDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CCvisionDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
void CCvisionDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCvisionDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCvisionDlg, CDialog)
//{{AFX_MSG_MAP(CCvisionDlg)
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_BN_CLICKED(IDC_BUTTON1, OnOpen)
ON_BN_CLICKED(IDC_BUTTON2, OnProcess)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCvisionDlg message handlers
BOOL CCvisionDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
return TRUE; // return TRUE unless
...
...
... to be continued.
This is a preview. To get the complete source file,
please click here to download the whole source code package.