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

📄 form1.frm

📁 控件XP、Office2003化的界面美化傻瓜化的控件
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{29ABD9F2-D5D6-4A56-8B94-731CAF7361A1}#18.0#0"; "XPControlEngine.ocx"
Begin VB.Form Form1 
   Caption         =   "界面优化"
   ClientHeight    =   7515
   ClientLeft      =   165
   ClientTop       =   855
   ClientWidth     =   7950
   LinkTopic       =   "Form1"
   ScaleHeight     =   7515
   ScaleWidth      =   7950
   StartUpPosition =   3  '窗口缺省
   Begin VB.PictureBox Picture2 
      Height          =   1005
      Left            =   2985
      ScaleHeight     =   945
      ScaleWidth      =   1260
      TabIndex        =   21
      Top             =   4800
      Width           =   1320
   End
   Begin VB.DirListBox Dir1 
      Height          =   1560
      Left            =   795
      TabIndex        =   20
      Top             =   4410
      Width           =   1905
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   19
      Top             =   7140
      Width           =   7950
      _ExtentX        =   14023
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   1
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Style           =   5
            TextSave        =   "22:13"
         EndProperty
      EndProperty
   End
   Begin VB.DriveListBox Drive1 
      Height          =   300
      Left            =   135
      TabIndex        =   18
      Top             =   3525
      Width           =   1215
   End
   Begin XPControlEngine.ctxHookMenu ctxHookMenu1 
      Left            =   3615
      Top             =   6615
      _ExtentX        =   900
      _ExtentY        =   900
      MenuGradientColor=   0
      MenuForeColor   =   -2147483640
      MenuBorderColor =   -2147483632
      MenuGradientSelectColor=   0
      PopupBorderColor=   -2147483632
      PopupBorderColor=   -2147483640
      PopupGradientSelectColor=   0
      SideBarColor    =   14215660
      SideBarGradientColor=   0
      CheckForeColor  =   -2147483641
      ShadowColor     =   0
      BmpCount        =   5
      Bmp:1           =   "Form1.frx":0000
      Key:1           =   "#mAbout"
      Bmp:2           =   "Form1.frx":0D68
      Key:2           =   "#mNew"
      Mask:3          =   16711935
      Key:3           =   "#mOpen"
      Bmp:4           =   "Form1.frx":1AD0
      Key:4           =   "#mAdd"
      Bmp:5           =   "Form1.frx":2838
      Mask:5          =   12632256
      Key:5           =   "#mPrint"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "Tahoma"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin XPControlEngine.WindowsXPC WindowsXPC1 
      Left            =   4860
      Top             =   6420
      _ExtentX        =   3466
      _ExtentY        =   979
      ColorScheme     =   3
      Common_Dialog   =   0   'False
   End
   Begin VB.CheckBox Check2 
      Caption         =   "Check2"
      Height          =   270
      Left            =   2805
      TabIndex        =   17
      Top             =   2595
      Width           =   1065
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Command2"
      Height          =   495
      Left            =   2805
      TabIndex        =   16
      Top             =   1410
      Width           =   1215
   End
   Begin MSComctlLib.ProgressBar ProgressBar1 
      Height          =   405
      Left            =   5550
      TabIndex        =   14
      Top             =   2040
      Width           =   2100
      _ExtentX        =   3704
      _ExtentY        =   714
      _Version        =   393216
      Appearance      =   1
   End
   Begin VB.CheckBox Check1 
      Caption         =   "Check1"
      Height          =   180
      Left            =   2805
      TabIndex        =   13
      Top             =   2235
      Width           =   975
   End
   Begin MSComctlLib.ListView ListView1 
      Height          =   1440
      Left            =   5550
      TabIndex        =   12
      Top             =   435
      Width           =   2100
      _ExtentX        =   3704
      _ExtentY        =   2540
      View            =   3
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      _Version        =   393217
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      BorderStyle     =   1
      Appearance      =   0
      NumItems        =   2
      BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         Text            =   "AAA"
         Object.Width           =   2540
      EndProperty
      BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
         SubItemIndex    =   1
         Text            =   "BBBB"
         Object.Width           =   2540
      EndProperty
   End
   Begin VB.ListBox List1 
      Height          =   960
      ItemData        =   "Form1.frx":2D7A
      Left            =   5550
      List            =   "Form1.frx":2D87
      TabIndex        =   11
      Top             =   2505
      Width           =   2100
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   495
      Left            =   2805
      TabIndex        =   10
      Top             =   645
      Width           =   1215
   End
   Begin MSComctlLib.TabStrip TabStrip1 
      Height          =   3270
      Left            =   2520
      TabIndex        =   9
      Top             =   120
      Width           =   2670
      _ExtentX        =   4710
      _ExtentY        =   5768
      _Version        =   393216
      BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628} 
         NumTabs         =   2
         BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "aaa"
            ImageVarType    =   2
         EndProperty
         BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "bbbb"
            ImageVarType    =   2
         EndProperty
      EndProperty
   End
   Begin VB.Frame Frame3 
      Caption         =   "控件效果--色彩方案"
      Height          =   840
      Left            =   120
      TabIndex        =   7
      Top             =   2490
      Width           =   2355
      Begin VB.ComboBox cmbColorScheme 
         Height          =   300
         Left            =   90
         Style           =   2  'Dropdown List
         TabIndex        =   8
         Top             =   315
         Width           =   1905
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "菜单效果--色彩方案"
      Height          =   2100
      Index           =   0
      Left            =   135
      TabIndex        =   0
      Top             =   165
      Width           =   2355
      Begin VB.Frame Frame1 
         Caption         =   "风格"
         Height          =   900
         Index           =   1
         Left            =   165
         TabIndex        =   4
         Top             =   255
         Width           =   2085
         Begin VB.OptionButton opOfficeMenuStyle 
            Caption         =   "OfficeXP风格"
            Height          =   285
            Index           =   0
            Left            =   150
            TabIndex        =   6
            Top             =   270
            Width           =   1500
         End
         Begin VB.OptionButton opOfficeMenuStyle 
            Caption         =   "Office2003风格"
            Height          =   240
            Index           =   1
            Left            =   150
            TabIndex        =   5
            Top             =   570
            Value           =   -1  'True
            Width           =   1575
         End
      End
      Begin VB.Frame Frame2 
         Caption         =   "色彩方案"
         Height          =   705
         Left            =   165
         TabIndex        =   2
         Top             =   1170
         Width           =   2085
         Begin VB.ComboBox cmbOfficeMenuTheme 
            Height          =   300
            Left            =   120
            Style           =   2  'Dropdown List
            TabIndex        =   3
            Top             =   270
            Width           =   1800
         End
      End
      Begin VB.PictureBox Picture1 
         Height          =   0
         Left            =   0
         ScaleHeight     =   0
         ScaleWidth      =   0
         TabIndex        =   1
         Top             =   0
         Width           =   0
      End
   End
   Begin MSComctlLib.Slider Slider1 
      Height          =   465
      Left            =   1890
      TabIndex        =   15
      Top             =   3630
      Width           =   2610
      _ExtentX        =   4604
      _ExtentY        =   820
      _Version        =   393216
   End
   Begin VB.Image Image1 
      Height          =   855
      Left            =   5085
      Top             =   5100
      Width           =   1650
   End
   Begin VB.Menu mFile 
      Caption         =   "文件(&F)"
      Begin VB.Menu mNew 
         Caption         =   "新建工程(&N)"
         Shortcut        =   ^N
      End
      Begin VB.Menu mOpen 
         Caption         =   "打开工程(&O)..."
         Shortcut        =   ^O
      End
      Begin VB.Menu sBar1 
         Caption         =   "-"
      End
      Begin VB.Menu mAdd 
         Caption         =   "添加工程(&D)..."
      End
      Begin VB.Menu mRemov 
         Caption         =   "移除工程(&R)"
      End
      Begin VB.Menu sBar2 
         Caption         =   "-"
      End
      Begin VB.Menu mSavc 
         Caption         =   "保存工程(&S)"
      End
      Begin VB.Menu mAsSave 
         Caption         =   "工程另存为(&E)..."
      End
      Begin VB.Menu sBar3 
         Caption         =   "-"
      End
      Begin VB.Menu mPrint 
         Caption         =   "打印(&P)"
         Shortcut        =   ^E
      End
      Begin VB.Menu mPsetup 
         Caption         =   "打印设置(&U)..."
      End
      Begin VB.Menu sBar4 
         Caption         =   "-"
      End
      Begin VB.Menu mQuit 
         Caption         =   "退出(&X)"
         Shortcut        =   ^Q
      End
   End
   Begin VB.Menu mEdit 
      Caption         =   "编辑(&E)"
      Begin VB.Menu mCut 
         Caption         =   "剪切(&T)"
         Shortcut        =   ^T
      End
      Begin VB.Menu mCopy 
         Caption         =   "复制(&C)"
         Shortcut        =   ^C
      End
      Begin VB.Menu mPaue 
         Caption         =   "粘贴(&P)"
         Shortcut        =   ^P
      End
   End
   Begin VB.Menu mHelp 
      Caption         =   "帮助(&H)"
      Begin VB.Menu mNr 
         Caption         =   "内容(&C)"
      End
      Begin VB.Menu mIn 
         Caption         =   "索引(&I)"
      End
      Begin VB.Menu mser 
         Caption         =   "搜索(&S)"
      End
      Begin VB.Menu mBar0 
         Caption         =   "-"
      End
      Begin VB.Menu mVB 
         Caption         =   "网站上的 Visual Basic 6.0"
         Shortcut        =   ^W
      End
      Begin VB.Menu mJs 
         Caption         =   "技术支持"
      End
      Begin VB.Menu mAbout 
         Caption         =   "关于(&A)"
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*************************************************************************
'**模 块 名:Form1
'**说    明:孤帆 版权所有2006 - 2007(C)
'**创 建 人:孤帆
'**日    期:2006-03-08 22:21:53
'**修 改 人:
'**日    期:
'**描    述:VB菜单和一些控件XP、Office2003化的界面美化傻瓜化的控件
'            有问题请给我发email:roisegufan@126.com
'**版    本:V1.0.0
'*************************************************************************

Private Sub cmbColorScheme_Click()
    If WindowsXPC1.EngineStarted = False Then
        WindowsXPC1.ColorScheme = cmbColorScheme.ListIndex + 1
        WindowsXPC1.InitSubClassing
        Me.Hide
        Me.Show
    Else
        WindowsXPC1.ColorScheme = cmbColorScheme.ListIndex + 1
        WindowsXPC1.EndWinXPCSubClassing

        WindowsXPC1.InitSubClassing
    End If

End Sub

Private Sub Command1_Click()
    Call InputBox("test")
End Sub

Private Sub Command2_Click()
    MsgBox "test"
End Sub

Private Sub Form_Initialize()
    '   开始
    WindowsXPC1.InitSubClassing

    cmbOfficeMenuTheme.AddItem "蓝色"
    cmbOfficeMenuTheme.AddItem "橄榄色"
    cmbOfficeMenuTheme.AddItem "银色"
    cmbOfficeMenuTheme.AddItem "系统色"
    'cmbOfficeMenuTheme.AddItem "自定义"
    cmbOfficeMenuTheme.ListIndex = 0
    ctxHookMenu1.OfficeMenuStyle = Office2003

    cmbColorScheme.AddItem "系统色"
    cmbColorScheme.AddItem "蓝色"
    cmbColorScheme.AddItem "橄榄色"
    cmbColorScheme.AddItem "银色"
    cmbColorScheme.ListIndex = 0 + 1

    ProgressBar1.Value = 30

End Sub

'***************************************************************************
'   菜单效果
'***************************************************************************
'设置菜单风格
Private Sub opOfficeMenuStyle_Click(Index As Integer)
    ctxHookMenu1.OfficeMenuStyle = Index
End Sub

'设置菜单色彩方案
Private Sub cmbOfficeMenuTheme_Click()
    ctxHookMenu1.OfficeMenuTheme = cmbOfficeMenuTheme.ListIndex
End Sub

Private Sub Form_Terminate()
    WindowsXPC1.EndWinXPCSubClassing
End Sub

Private Sub mQuit_Click()
    Unload Me
End Sub

⌨️ 快捷键说明

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