SelMemberCardFund.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // SelMemberCardFund.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "ylgl.h"
  5. #include "SelMemberCardFund.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // SelMemberCardFund dialog
  13. SelMemberCardFund::SelMemberCardFund(CWnd* pParent /*=NULL*/)
  14. : CDialog(SelMemberCardFund::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(SelMemberCardFund)
  17. m_radio1 = 0;
  18. m_mode=0;
  19. //}}AFX_DATA_INIT
  20. }
  21. void SelMemberCardFund::DoDataExchange(CDataExchange* pDX)
  22. {
  23. CDialog::DoDataExchange(pDX);
  24. //{{AFX_DATA_MAP(SelMemberCardFund)
  25. DDX_Radio(pDX, IDC_RADIO1, m_radio1);
  26. //}}AFX_DATA_MAP
  27. }
  28. BEGIN_MESSAGE_MAP(SelMemberCardFund, CDialog)
  29. //{{AFX_MSG_MAP(SelMemberCardFund)
  30. //}}AFX_MSG_MAP
  31. END_MESSAGE_MAP()
  32. /////////////////////////////////////////////////////////////////////////////
  33. // SelMemberCardFund message handlers
  34. void SelMemberCardFund::OnOK()
  35. {
  36. // TODO: Add extra validation here
  37. UpdateData();
  38. CDialog::OnOK();
  39. }
  40. BOOL SelMemberCardFund::OnInitDialog()
  41. {
  42. CDialog::OnInitDialog();
  43. // TODO: Add extra initialization here
  44. if(m_mode==1)
  45. {
  46. SetWindowText("´òÓ¡Ñ¡Ôñ");
  47. GetDlgItem(IDC_RADIO1)->SetWindowText("Ã÷ϸ±í");
  48. GetDlgItem(IDC_RADIO2)->SetWindowText("Åɹ¤µ¥");
  49. }
  50. return TRUE; // return TRUE unless you set the focus to a control
  51. // EXCEPTION: OCX Property Pages should return FALSE
  52. }