www.pudn.com > sdi-dialog-bmp.rar > DrvDlg.cpp
// DrvDlg.cpp : implementation file
//
#include "stdafx.h"
#include "dbulin.h"
#include "DrvDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDrvDlg dialog
CDrvDlg::CDrvDlg(CWnd* pParent /*=NULL*/)
: CDialog(CDrvDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CDrvDlg)
//}}AFX_DATA_INIT
}
void CDrvDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDrvDlg)
DDX_Control(pDX, IDC_LIST2, m_list1);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDrvDlg, CDialog)
//{{AFX_MSG_MAP(CDrvDlg)
ON_LBN_SELCHANGE(IDC_LIST2, OnSelchangeList2)
ON_BN_CLICKED(IDC_BUTTON_SEL, OnButtonSel)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDrvDlg message handlers
BOOL CDrvDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CDrvDlg::OnSelchangeList2()
{
// TODO: Add your control notification handler code here
sel=m_list1.GetCurSel();
}
//DEL void CDrvDlg::OnOK()
//DEL {
//DEL // TODO: Add extra validation here
//DEL
//DEL CDialog::OnOK();
//DEL }
void CDrvDlg::OnButtonSel()
{
// TODO: Add your control notification handler code here
dlg->setInitVideo(sel);
ShowWindow(SW_HIDE);
}
void CDrvDlg::setDlg(CGetImageDlg *d)
{
dlg=d;
}