?? circulate.cpp
字號:
// Circulate.cpp : implementation file
//
#include "stdafx.h"
#include "dsACD_IVR.h"
#include "Circulate.h"
#include "dsACD_IVRDoc.h"
#include "dsACD_IVRView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCirculate dialog
CCirculate::CCirculate(CWnd* pParent /*=NULL*/)
: CDialog(CCirculate::IDD, pParent)
{
//{{AFX_DATA_INIT(CCirculate)
m_csCondition = _T("");
m_csComment = _T("");
//}}AFX_DATA_INIT
}
void CCirculate::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCirculate)
DDX_CBString(pDX, IDC_CIR_CONDITION, m_csCondition);
DDX_Text(pDX, IDC_CIR_COMMENT, m_csComment);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCirculate, CDialog)
//{{AFX_MSG_MAP(CCirculate)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCirculate message handlers
BOOL CCirculate::OnInitDialog()
{
CDialog::OnInitDialog();
CComboBox *pCondition=(CComboBox *)GetDlgItem(IDC_CIR_CONDITION);
CString buf, csVariableName;
m_pDsACD_IVRView->ReadVariable(buf);
while (!buf.IsEmpty())
{ csVariableName = buf.Left(buf.Find(";" ));
pCondition->AddString(csVariableName);
buf.Delete(0, buf.Find(";" )+1);
}
int nIndex = pCondition->SelectString(-1, m_csCondition);
pCondition->SetCurSel(nIndex);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CCirculate::DisplayDlg(dsACDObjectBase *pObj)
{
dsCir_INFO * pCirInfo = (dsCir_INFO*) pObj->Read();
m_csCondition = pCirInfo->Condition;
m_csComment = pCirInfo->Comment;
if(DoModal()==IDOK)
{
pCirInfo->Condition = m_csCondition;
pCirInfo->Comment = m_csComment;
}
else
return;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -