1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- // SelProvider.cpp : implementation file
- //
- #include "stdafx.h"
- #include "LYFZSendMsg.h"
- #include "SelProvider.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // SelProvider dialog
- SelProvider::SelProvider(CWnd* pParent /*=NULL*/)
- : CDialog(SelProvider::IDD, pParent)
- {
- //{{AFX_DATA_INIT(SelProvider)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void SelProvider::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(SelProvider)
- DDX_Control(pDX, IDC_COMBOprovider, m_comboprovider);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(SelProvider, CDialog)
- //{{AFX_MSG_MAP(SelProvider)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // SelProvider message handlers
- BOOL SelProvider::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- // TODO: Add extra initialization here
- for(int i=0; i<g_List1array.GetSize (); i++)
- m_comboprovider.AddString ("ÒÑ·¢"+g_List1array.ElementAt (i).ElementAt (1));
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void SelProvider::OnOK()
- {
- // TODO: Add extra validation here
- int pos=m_comboprovider.GetCurSel ();
- if(pos==-1)return;
- m_comboprovider.GetLBText (pos, m_provider);
- CDialog::OnOK();
- }
|