1998-01-07 10:17:26 +00:00
|
|
|
// StatDlg.cpp : implementation file
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
1998-05-04 10:09:51 +00:00
|
|
|
#include "Connect.h"
|
1998-01-07 10:17:26 +00:00
|
|
|
#include "FrontEnd.h"
|
|
|
|
#include "StatDlg.h"
|
1998-05-04 10:09:51 +00:00
|
|
|
#include "Server.h"
|
1998-01-07 10:17:26 +00:00
|
|
|
|
|
|
|
#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
|
1998-05-04 10:09:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
BOOL CStatusDlg::OnInitDialog()
|
|
|
|
{
|
|
|
|
CDialog::OnInitDialog();
|
|
|
|
|
|
|
|
TDongleServer& srv = GetServer();
|
1998-11-13 14:54:23 +00:00
|
|
|
const int nPeers = srv.Peers();
|
1998-06-24 13:48:00 +00:00
|
|
|
const int nUsers = srv.Users();
|
|
|
|
const int nConns = srv.Connections();
|
1998-11-13 14:54:23 +00:00
|
|
|
SetDlgItemInt(IDC_PEERS, nPeers);
|
1998-06-24 13:48:00 +00:00
|
|
|
SetDlgItemInt(IDC_USERS, nUsers);
|
|
|
|
SetDlgItemInt(IDC_CONNECTIONS, nConns);
|
|
|
|
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
1998-05-04 10:09:51 +00:00
|
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
|
|
}
|