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

📄 about.cpp

📁 本人用BCB编写的扫雷小游戏
💻 CPP
字号:
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "About.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TAboutForm *AboutForm;
//---------------------------------------------------------------------------
__fastcall TAboutForm::TAboutForm(TComponent* Owner)
  : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::FormShow(TObject *)
{
  TMemoryStatus * MS = new TMemoryStatus(); 

  GlobalMemoryStatus(MS);

  Label_lblMemory->Caption = "Windows 的可用物理内存 : " + FormatFloat("#,### KB", MS->dwTotalPhys/1024);
  delete MS;
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::Label_EmailMouseEnter(TObject *)
{
  Label_Email->Font->Color = clRed;
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::Label_EmailMouseLeave(TObject *)
{
  Label_Email->Font->Color = clActiveCaption;
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::Label_QQMouseEnter(TObject *)
{
  Label_QQ->Font->Color = clRed;
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::Label_QQMouseLeave(TObject *)
{
  Label_QQ->Font->Color = clActiveCaption;
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::Label_QQClick(TObject *)
{
  ShellExecute(AboutForm->Handle,"OPEN",
    "http://search.tencent.com/cgi-bin/friend/user_show_info?ln=32203367",
    NULL,NULL,SW_SHOW);
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::Label_EmailClick(TObject *)
{
  AnsiString s;

  s = "mailto:Todd Lau<todd_nuaa@126.com>";
  s += "?subject=About Program";
  s += "&body=Hello,Mr. Todd Lau";
  
  ShellExecute(AboutForm->Handle ,"OPEN",
    s.c_str(),
    NULL,NULL,SW_SHOW);
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::Label_MSNClick(TObject *)
{
  ShellExecute(AboutForm->Handle,"OPEN",
    "http://spaces.msn.com/members/nuaa",
    NULL,NULL,SW_SHOW);
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::Label_MSNMouseEnter(TObject *)
{
  Label_MSN->Font->Color = clRed;
}
//---------------------------------------------------------------------------
void __fastcall TAboutForm::Label_MSNMouseLeave(TObject *)
{
  Label_MSN->Font->Color = clActiveCaption;
}
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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