📄 compinfodlg.cpp
字号:
//////////////////////////////////////////////////////////////////////
// FileFury
// Copyright (c) 2000 Tenebril Incorporated
// All rights reserved.
//
// This source code is governed by the Tenebril open source
// license (http://www.tenebril.com/developers/opensource/license.html)
//
// For more information on this and other open source applications,
// visit the Tenebril OpenSource page:
// http://www.tenebril.com/developers/opensource
//
//////////////////////////////////////////////////////////////////////
// CompInfoDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Oscar.h"
#include "CompInfoDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCompInfoDlg dialog
CCompInfoDlg::CCompInfoDlg(CWnd* pParent, LPCTSTR czCompName,
LPCTSTR czUserName, LPCTSTR czSharedDirs)
: CDialog(CCompInfoDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CCompInfoDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_cszCompName = czCompName;
m_cszUserName = czUserName;
m_cszSharedDirs = czSharedDirs; // Unimplemented.
}
void CCompInfoDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCompInfoDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCompInfoDlg, CDialog)
//{{AFX_MSG_MAP(CCompInfoDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCompInfoDlg message handlers
BOOL CCompInfoDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Set the information.
SetDlgItemText(IDC_COMPUTERNAME, m_cszCompName);
// Set the icon.
CStatic *pGuider;
CRect crGuider;
pGuider = (CStatic *)GetDlgItem(IDC_LOGOGUIDER);
pGuider->GetWindowRect(&crGuider);
ScreenToClient(&crGuider);
m_cLogoBox.Create(WS_VISIBLE | WS_CHILD | WS_DISABLED,
crGuider, this, IDC_LOGOBOX, IDB_FOLDER,
CSize(52, 40), RGB(191, 191, 191));
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -