⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 systemconfig.cpp

📁 SDK DVR/DVS HIKVISION
💻 CPP
字号:
// SystemConfig.cpp : implementation file
//

#include "stdafx.h"
#include "newclient.h"
#include "SystemConfig.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSystemConfig dialog


CSystemConfig::CSystemConfig(CWnd* pParent /*=NULL*/)
	: CDialog(CSystemConfig::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSystemConfig)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CSystemConfig::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSystemConfig)
	DDX_Control(pDX, IDC_TAB1, m_Tab);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSystemConfig, CDialog)
	//{{AFX_MSG_MAP(CSystemConfig)
	ON_NOTIFY(TCN_SELCHANGE, IDC_TAB1, OnSelchangeTab1)
	ON_BN_CLICKED(IDSYSCFGOK, OnSyscfgok)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSystemConfig message handlers

BOOL CSystemConfig::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_Tab.InsertItem(0, "Surveillance Setup");
	m_SetSurveillanceDlg.Create(IDD_DLG_SETREMOTE, &m_Tab);
	m_SetSurveillanceDlg.ShowWindow(SW_SHOW);
	
	m_Tab.InsertItem(1, "Local Setup");
	m_SetClientDlg.Create(IDD_DLG_SETLOCAL, &m_Tab);
	m_SetClientDlg.ShowWindow(SW_HIDE);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CSystemConfig::OnSelchangeTab1(NMHDR* pNMHDR, LRESULT* pResult) 
{
	// TODO: Add your control notification handler code here
	switch(m_Tab.GetCurSel())
	{
	case 0:
		m_SetSurveillanceDlg.ShowWindow(SW_SHOW);
		m_SetClientDlg.ShowWindow(SW_HIDE);
		break;
	case 1:
		m_SetSurveillanceDlg.ShowWindow(SW_HIDE);
		m_SetClientDlg.ShowWindow(SW_SHOW);
		break;
	default:
		break;
	}		
	*pResult = 0;
}

void CSystemConfig::OnSyscfgok() 
{
	// TODO: Add your control notification handler code here
	if(!m_SetSurveillanceDlg.m_bSaveflag)
	{
		m_SetSurveillanceDlg.F_Save();
	}
	CDialog::OnCancel();
}

void CSystemConfig::OnCancel() 
{
	// TODO: Add extra cleanup here
	
//	CDialog::OnCancel();
}

void CSystemConfig::OnOK() 
{
	// TODO: Add extra cleanup here
	
	//	CDialog::OnOK();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -