58 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
		
			Executable File
		
	
	
	
	
// StatDlg.cpp : implementation file
 | 
						|
//
 | 
						|
 | 
						|
#include "stdafx.h"
 | 
						|
#include "Connect.h"
 | 
						|
#include "FrontEnd.h"
 | 
						|
#include "StatDlg.h"
 | 
						|
#include "Server.h"
 | 
						|
 | 
						|
#ifdef _DEBUG
 | 
						|
#define new DEBUG_NEW
 | 
						|
#undef THIS_FILE
 | 
						|
static char THIS_FILE[] = __FILE__;
 | 
						|
#endif
 | 
						|
 | 
						|
/////////////////////////////////////////////////////////////////////////////
 | 
						|
// CStatusDlg dialog
 | 
						|
 | 
						|
 | 
						|
CStatusDlg::CStatusDlg(CWnd* pParent /*=NULL*/)
 | 
						|
	: CDialog(CStatusDlg::IDD, pParent)
 | 
						|
{
 | 
						|
	//{{AFX_DATA_INIT(CStatusDlg)
 | 
						|
	//}}AFX_DATA_INIT
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
void CStatusDlg::DoDataExchange(CDataExchange* pDX)
 | 
						|
{
 | 
						|
	CDialog::DoDataExchange(pDX);
 | 
						|
	//{{AFX_DATA_MAP(CStatusDlg)
 | 
						|
	//}}AFX_DATA_MAP
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
BEGIN_MESSAGE_MAP(CStatusDlg, CDialog)
 | 
						|
	//{{AFX_MSG_MAP(CStatusDlg)
 | 
						|
	//}}AFX_MSG_MAP
 | 
						|
END_MESSAGE_MAP()
 | 
						|
 | 
						|
/////////////////////////////////////////////////////////////////////////////
 | 
						|
// CStatusDlg message handlers
 | 
						|
 | 
						|
 | 
						|
BOOL CStatusDlg::OnInitDialog() 
 | 
						|
{
 | 
						|
	CDialog::OnInitDialog();
 | 
						|
	
 | 
						|
	TDongleServer& srv = GetServer();
 | 
						|
	const int nUsers = srv.Users();
 | 
						|
	const int nConns = srv.Connections();
 | 
						|
  SetDlgItemInt(IDC_USERS, nUsers);
 | 
						|
  SetDlgItemInt(IDC_CONNECTIONS, nConns);
 | 
						|
 | 
						|
  return TRUE;  // return TRUE unless you set the focus to a control
 | 
						|
	              // EXCEPTION: OCX Property Pages should return FALSE
 | 
						|
}
 |