1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #include "stdafx.h"
- #include "ylgl.h"
- #include "ChooseReason.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- CChooseReason::CChooseReason(CWnd* pParent )
- : CDialog(CChooseReason::IDD, pParent)
- {
-
- m_radio1 = 0;
-
- }
- void CChooseReason::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
-
- DDX_Control(pDX, IDC_COMBOwaiter1, m_combowaiter1);
- DDX_Radio(pDX, IDC_RADIO1, m_radio1);
-
- }
- BEGIN_MESSAGE_MAP(CChooseReason, CDialog)
-
-
- END_MESSAGE_MAP()
- BOOL CChooseReason::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
-
- m_combowaiter1.RefDroppedWidth();
- return TRUE;
-
- }
- void CChooseReason::OnOK()
- {
-
- UpdateData();
- if(m_radio1==0)
- sRet="¹¤³§";
- else
- {
- int pos=m_combowaiter1.GetCurSel ();
- CString m_waiter1;
- if(pos!=-1)
- {
- m_combowaiter1.GetLBText (pos, m_waiter1);
- }
- else
- return;
- sRet="Ô±¹¤:"+m_waiter1;
- }
- CDialog::OnOK();
- }
|