SMSABOUT.FRM
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:6k
源码类别:

Windows编程

开发平台:

Visual C++

  1. VERSION 4.00
  2. Begin VB.Form frmSMSAbout 
  3.    Appearance      =   0  'Flat
  4.    BackColor       =   &H80000005&
  5.    BorderStyle     =   3  'Fixed Dialog
  6.    Caption         =   "About SMS Report"
  7.    ClientHeight    =   2895
  8.    ClientLeft      =   1080
  9.    ClientTop       =   1485
  10.    ClientWidth     =   7755
  11.    BeginProperty Font 
  12.       name            =   "MS Sans Serif"
  13.       charset         =   0
  14.       weight          =   700
  15.       size            =   8.25
  16.       underline       =   0   'False
  17.       italic          =   0   'False
  18.       strikethrough   =   0   'False
  19.    EndProperty
  20.    ForeColor       =   &H80000008&
  21.    Height          =   3300
  22.    Left            =   1020
  23.    LinkTopic       =   "Form1"
  24.    MaxButton       =   0   'False
  25.    MinButton       =   0   'False
  26.    ScaleHeight     =   2895
  27.    ScaleWidth      =   7755
  28.    Top             =   1140
  29.    Width           =   7875
  30.    Begin Threed.SSPanel pnlDialogBackdrop 
  31.       Height          =   2895
  32.       Left            =   0
  33.       TabIndex        =   0
  34.       Top             =   0
  35.       Width           =   7755
  36.       _Version        =   65536
  37.       _ExtentX        =   13679
  38.       _ExtentY        =   5106
  39.       _StockProps     =   15
  40.       BackColor       =   -2147483633
  41.       Begin VB.Timer tmrAnimation 
  42.          Interval        =   100
  43.          Left            =   180
  44.          Top             =   2340
  45.       End
  46.       Begin VB.CommandButton cmdOk 
  47.          Appearance      =   0  'Flat
  48.          Caption         =   "OK"
  49.          Default         =   -1  'True
  50.          Height          =   375
  51.          Left            =   6480
  52.          TabIndex        =   3
  53.          Top             =   2400
  54.          Width           =   1095
  55.       End
  56.       Begin Threed.SSPanel pnlOutlineBackdrop 
  57.          Height          =   1995
  58.          Left            =   180
  59.          TabIndex        =   1
  60.          Top             =   240
  61.          Width           =   7395
  62.          _Version        =   65536
  63.          _ExtentX        =   13044
  64.          _ExtentY        =   3519
  65.          _StockProps     =   15
  66.          BackColor       =   -2147483633
  67.          Begin Threed.SSPanel pnlVersion 
  68.             Height          =   315
  69.             Left            =   240
  70.             TabIndex        =   2
  71.             Top             =   1500
  72.             Width           =   6915
  73.             _Version        =   65536
  74.             _ExtentX        =   12197
  75.             _ExtentY        =   556
  76.             _StockProps     =   15
  77.             BackColor       =   -2147483633
  78.             BevelOuter      =   1
  79.             Autosize        =   3
  80.          End
  81.          Begin VB.PictureBox picLogo 
  82.             Appearance      =   0  'Flat
  83.             BackColor       =   &H80000005&
  84.             BorderStyle     =   0  'None
  85.             ForeColor       =   &H80000008&
  86.             Height          =   960
  87.             Left            =   240
  88.             ScaleHeight     =   960
  89.             ScaleWidth      =   960
  90.             TabIndex        =   4
  91.             Top             =   180
  92.             Width           =   960
  93.          End
  94.          Begin PicClip.PictureClip pcpAnimation 
  95.             Left            =   -3885
  96.             Top             =   -1965
  97.             _Version        =   65536
  98.             _ExtentX        =   8625
  99.             _ExtentY        =   5186
  100.             _StockProps     =   0
  101.             Rows            =   3
  102.             Cols            =   5
  103.             Picture         =   "SMSABOUT.frx":0000
  104.          End
  105.          Begin VB.Label Label1 
  106.             Appearance      =   0  'Flat
  107.             Caption         =   "Version Information:"
  108.             ForeColor       =   &H80000008&
  109.             Height          =   255
  110.             Left            =   240
  111.             TabIndex        =   6
  112.             Top             =   1260
  113.             Width           =   1875
  114.          End
  115.          Begin VB.Label lblInfo 
  116.             Alignment       =   2  'Center
  117.             Appearance      =   0  'Flat
  118.             ForeColor       =   &H80000008&
  119.             Height          =   975
  120.             Left            =   1380
  121.             TabIndex        =   5
  122.             Top             =   180
  123.             Width           =   5775
  124.          End
  125.       End
  126.    End
  127. End
  128. Attribute VB_Name = "frmSMSAbout"
  129. Attribute VB_Creatable = False
  130. Attribute VB_Exposed = False
  131. Option Explicit
  132. '//****************************************************************************
  133. '//
  134. '//  Copyright (c) 1995, Microsoft Corporation
  135. '//
  136. '//  File:  SMSABOUT.FRM
  137. '//
  138. '//  History:
  139. '//
  140. '//      Gary Fuehrer, SEA   6/13/95      Created.
  141. '//
  142. '//****************************************************************************
  143. Dim OldMousePointer%
  144. Dim CallingForm As Form
  145. Private Sub cmdOk_Click()
  146.     Unload Me
  147. End Sub
  148. Private Sub Form_Load()
  149.     Dim NewLeft%, NewTop%
  150.     Dim lRet&, Ver$
  151.     
  152.     'Save the old mouse pointer
  153.     Set CallingForm = Screen.ActiveForm
  154.     OldMousePointer% = CallingForm.MousePointer
  155.     
  156.     'Turn on normal pointer
  157.     MousePointer = NORMAL
  158.     
  159.     'Center form on calling form
  160.     NewLeft% = CallingForm.left + (CallingForm.Width - Width) / 2
  161.     If NewLeft% + Width > Screen.Width Then NewLeft% = Screen.Width - Width
  162.     If NewLeft% < 0 Then NewLeft% = 0
  163.     NewTop% = CallingForm.top + (CallingForm.Height - Height) / 2
  164.     If NewTop% + Height > Screen.Height Then NewTop% = Screen.Height - Height
  165.     If NewTop% < 0 Then NewTop% = 0
  166.     left = NewLeft%
  167.     top = NewTop%
  168.     'Set caption and info fields
  169.     Caption = SMSAboutCaption$
  170.     lblInfo = SMSAboutInfo$
  171.     'Get SMS version string
  172.     lRet& = SmsAPIVer&(Ver$)
  173.     If lRet& = SMS_OK Then
  174.         pnlVersion.Caption = Ver$
  175.     Else: pnlVersion.Caption = "<Error obtaining version string>"
  176.     End If
  177. End Sub
  178. Private Sub Form_Unload(Cancel As Integer)
  179.     'Replace mouse pointer
  180.     CallingForm.MousePointer = OldMousePointer%
  181. End Sub
  182. Private Sub tmrAnimation_Timer()
  183.     Static index%
  184.     picLogo.Picture = pcpAnimation.GraphicCell(index%)
  185.     index% = (index% + 1) Mod 14
  186. End Sub