SplitDlg.cpp
上传用户:ywlong9188
上传日期:2022-05-31
资源大小:2656k
文件大小:1k
- // SplitDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "proj.h"
- #include "SplitDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CSplitDlg dialog
- CSplitDlg::CSplitDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CSplitDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CSplitDlg)
- m_index = -1;
- //}}AFX_DATA_INIT
- }
- void CSplitDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CSplitDlg)
- DDX_Control(pDX, IDC_COMBO1, m_combox);
- DDX_CBIndex(pDX, IDC_COMBO1, m_index);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CSplitDlg, CDialog)
- //{{AFX_MSG_MAP(CSplitDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CSplitDlg message handlers
- BOOL CSplitDlg::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 FALS
- }