12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- // TodayFormChild.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ylgl.h"
- #include "TodayFormChild.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // TodayFormChild dialog
- TodayFormChild::TodayFormChild(CWnd* pParent /*=NULL*/)
- : CDialog(TodayFormChild::IDD, pParent)
- {
- //{{AFX_DATA_INIT(TodayFormChild)
- // NOTE: the ClassWizard will add member initialization here
- List1array=NULL;
- pClientarray=NULL;
- pTxtypearray=NULL;
- //}}AFX_DATA_INIT
- }
- void TodayFormChild::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(TodayFormChild)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(TodayFormChild, CDialog)
- //{{AFX_MSG_MAP(TodayFormChild)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // TodayFormChild message handlers
- void TodayFormChild::OnOK()
- {
- // TODO: Add extra validation here
-
- }
- void TodayFormChild::OnCancel()
- {
- // TODO: Add extra cleanup here
-
- }
- BOOL TodayFormChild::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
- // TODO: Add extra initialization here
-
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void TodayFormChild::ShowTable()
- {
- CRect rc;
- GetClientRect(rc);
- m_table.m_pClientArray=pClientarray;
- m_table.pTxtypearray=pTxtypearray;
- m_table.m_pListArray=List1array;
- if(m_table.GetSafeHwnd()==NULL)
- m_table.Create(rc, this, WS_HSCROLL);
- m_table.Test ();
- }
- void TodayFormChild::DeleteCur()
- {
- m_table.DeleteCur();
- }
- void TodayFormChild::OtherDate()
- {
- m_table.OtherDate();
- }
- CString TodayFormChild::GetCurPhone(CString &name)
- {
- return m_table.GetCurPhone(name);
- }
|