MergeDlg.cpp
上传用户:ywlong9188
上传日期:2022-05-31
资源大小:2656k
文件大小:1k
- // MergeDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "MergeDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CMergeDlg dialog
- CMergeDlg::CMergeDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CMergeDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CMergeDlg)
- m_index = -1;
- m_name = _T("");
- //}}AFX_DATA_INIT
- }
- void CMergeDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CMergeDlg)
- DDX_Control(pDX, IDC_COMBO1, m_combox);
- DDX_CBIndex(pDX, IDC_COMBO1, m_index);
- DDX_Text(pDX, IDC_MERGE_NAME, m_name);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CMergeDlg, CDialog)
- //{{AFX_MSG_MAP(CMergeDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CMergeDlg message handlers
- BOOL CMergeDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- // TODO: Add extra initialization here
- POSITION pos = m_list.GetHeadPosition();
- while(pos!=NULL)
- {
- m_combox.AddString(m_list.GetNext(pos));
- }
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }