www.pudn.com > XRayImg.rar > DialogAbout.cpp
// DialogAbout.cpp : implementation file
//
#include "stdafx.h"
#include "XRayImg.h"
#include "DialogAbout.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDialogAbout dialog
CDialogAbout::CDialogAbout(CWnd* pParent /*=NULL*/)
: CDialog(CDialogAbout::IDD, pParent)
{
//{{AFX_DATA_INIT(CDialogAbout)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CDialogAbout::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDialogAbout)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDialogAbout, CDialog)
//{{AFX_MSG_MAP(CDialogAbout)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDialogAbout message handlers
//***************************************************************
//函数: 初始化程序
// 1) 设置滚动显示
// 2)
//
//说明:
//***************************************************************
BOOL CDialogAbout::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
//设置窗体 =图片尺寸
CRect mRect(0,0,600,350);
this->MoveWindow(mRect);
this->CenterWindow();
//set credit text
CString strCredits = "\t\n\n\n\n\n\n\n\n"
"\tX光图像采集管理系统\n\n"
"\r软件全称:\n"
" X光图像采集/图像处理管理系统 XRayImg \n\n"
"\r软件版本号:\n"
" XRayImg v1.0\n\n"
"\r软件授权单位:\n"
" \n\n"
"\r联系我们:\n"
" 公司:\n"
" 网址: \n\n";
m_AboutCtrl.SetCredits(strCredits,IDB_LOGO,IDB_SCROLL_BKG,260);
m_AboutCtrl.Create(_T(""),WS_CHILD|WS_VISIBLE,
mRect,this,IDC_ABOUTCTRL);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}