?? form2.frm
字號:
VERSION 5.00
Begin VB.Form Form2
BackColor = &H00FF0000&
BorderStyle = 1 'Fixed Single
Caption = "選擇路徑"
ClientHeight = 3990
ClientLeft = 6735
ClientTop = 3945
ClientWidth = 3030
Icon = "Form2.frx":0000
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3990
ScaleWidth = 3030
Begin VB.CommandButton Command1
Caption = "完成配置"
Height = 375
Left = 600
TabIndex = 2
Top = 3480
Width = 1815
End
Begin VB.DirListBox Dir1
Height = 2400
Left = 360
TabIndex = 1
Top = 960
Width = 2295
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 360
TabIndex = 0
Top = 480
Width = 2295
End
Begin VB.Label Label1
BackColor = &H00FF0000&
Caption = "請選擇浪潮多媒體軟件的路徑:"
ForeColor = &H00FFFF00&
Height = 255
Left = 240
TabIndex = 3
Top = 240
Width = 2535
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Private Const HWND_TOPMOST = -1
Private Const SWP_SHOWWINDOWS = &H40
Private Sub Command1_Click()
stufile = Dir1.Path
SaveSetting "postu", "2.0", "stufile", stufile '寫注冊表Postu下的2.0下的Stufile
Form1.Enabled = True
MsgBox "請重新啟動本軟件!", vbInformation, "提示"
End
End Sub
Private Sub Drive1_Change()
On Error GoTo error1
Dir1.Path = Drive1.Drive
Exit Sub
error1:
MsgBox "驅動器門未打開!", vbCritical, "錯誤"
End Sub
Private Sub Form_Load()
Form1.Enabled = False
retValue = SetWindowPos(Me.hwnd, HWND_TOPMOST, Me.CurrentX + 300, Me.CurrentY + 180, 215, 300, SWP_SHOWWINDOWS)
End Sub
Private Sub Form_Unload(Cancel As Integer)
Form1.Enabled = True
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -