55 lines
1.8 KiB
C++
55 lines
1.8 KiB
C++
//---------------------------------------------------------------------------
|
|
|
|
#include <vcl.h>
|
|
#pragma hdrstop
|
|
|
|
#include "GlobalUnit.h"
|
|
#include "AboutFormUnit.h"
|
|
//---------------------------------------------------------------------------
|
|
#pragma package(smart_init)
|
|
#pragma resource "*.dfm"
|
|
TAboutForm *AboutForm;
|
|
//---------------------------------------------------------------------------
|
|
__fastcall TAboutForm::TAboutForm(TComponent* Owner)
|
|
: TForm(Owner)
|
|
{
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
void __fastcall TAboutForm::m_lblURLMouseMove(TObject *Sender, TShiftState Shift,
|
|
int X, int Y)
|
|
{
|
|
m_lblURL->Font->Style = TFontStyles()<<fsUnderline;
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
|
|
void __fastcall TAboutForm::m_lblURLMouseLeave(TObject *Sender)
|
|
{
|
|
m_lblURL->Font->Style = TFontStyles()>>fsUnderline;
|
|
m_lblURL->Invalidate() ;
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
|
|
void __fastcall TAboutForm::m_lblURLClick(TObject *Sender)
|
|
{
|
|
if( m_lblURL->Caption.Length()>0 ){
|
|
ShellExecute(Handle,NULL, m_lblURL->Caption.c_str(), NULL,NULL,SW_SHOWNORMAL);
|
|
}
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
|
|
void __fastcall TAboutForm::FormCreate(TObject *Sender)
|
|
{
|
|
String strSoftware = L"";
|
|
|
|
char buff[MAX_PATH] = {20};
|
|
sprintf(buff,"%d.%d.%d.%d",g_infoSoftwareUpdate.version.majorVersion,\
|
|
g_infoSoftwareUpdate.version.minorVersion,g_infoSoftwareUpdate.version.modifyVersion,\
|
|
g_infoSoftwareUpdate.version.buildVersion);
|
|
|
|
strSoftware = L"°æ±¾:" + (String)buff;
|
|
m_lblVersion->Caption = strSoftware;
|
|
m_lblURL->Caption = g_strServerURL;
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
|