TodayFormChild.cpp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. // TodayFormChild.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "ylgl.h"
  5. #include "TodayFormChild.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // TodayFormChild dialog
  13. TodayFormChild::TodayFormChild(CWnd* pParent /*=NULL*/)
  14. : CDialog(TodayFormChild::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(TodayFormChild)
  17. // NOTE: the ClassWizard will add member initialization here
  18. List1array=NULL;
  19. pClientarray=NULL;
  20. pTxtypearray=NULL;
  21. //}}AFX_DATA_INIT
  22. }
  23. void TodayFormChild::DoDataExchange(CDataExchange* pDX)
  24. {
  25. CDialog::DoDataExchange(pDX);
  26. //{{AFX_DATA_MAP(TodayFormChild)
  27. // NOTE: the ClassWizard will add DDX and DDV calls here
  28. //}}AFX_DATA_MAP
  29. }
  30. BEGIN_MESSAGE_MAP(TodayFormChild, CDialog)
  31. //{{AFX_MSG_MAP(TodayFormChild)
  32. //}}AFX_MSG_MAP
  33. END_MESSAGE_MAP()
  34. /////////////////////////////////////////////////////////////////////////////
  35. // TodayFormChild message handlers
  36. void TodayFormChild::OnOK()
  37. {
  38. // TODO: Add extra validation here
  39. }
  40. void TodayFormChild::OnCancel()
  41. {
  42. // TODO: Add extra cleanup here
  43. }
  44. BOOL TodayFormChild::OnInitDialog()
  45. {
  46. CDialog::OnInitDialog();
  47. // TODO: Add extra initialization here
  48. return TRUE; // return TRUE unless you set the focus to a control
  49. // EXCEPTION: OCX Property Pages should return FALSE
  50. }
  51. void TodayFormChild::ShowTable()
  52. {
  53. CRect rc;
  54. GetClientRect(rc);
  55. m_table.m_pClientArray=pClientarray;
  56. m_table.pTxtypearray=pTxtypearray;
  57. m_table.m_pListArray=List1array;
  58. if(m_table.GetSafeHwnd()==NULL)
  59. m_table.Create(rc, this, WS_HSCROLL);
  60. m_table.Test ();
  61. }
  62. void TodayFormChild::DeleteCur()
  63. {
  64. m_table.DeleteCur();
  65. }
  66. void TodayFormChild::OtherDate()
  67. {
  68. m_table.OtherDate();
  69. }
  70. CString TodayFormChild::GetCurPhone(CString &name)
  71. {
  72. return m_table.GetCurPhone(name);
  73. }