?? fdck.frm
字號:
VERSION 5.00
Begin VB.Form jsck
HelpContextID = 360
BorderStyle = 3 'Fixed Dialog
Caption = "監(jiān)視窗口"
ClientHeight = 2670
ClientLeft = 45
ClientTop = 330
ClientWidth = 3120
Icon = "Fdck.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2670
ScaleWidth = 3120
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.PictureBox Pic
WhatsThisHelpID = 360 'WhatsThisHelpID for: Pic *** HelpWriter ***
AutoRedraw = -1 'True
BackColor = &H8000000E&
Height = 2610
Left = 15
ScaleHeight = 2550
ScaleWidth = 3030
TabIndex = 0
Top = 30
Width = 3090
End
End
Attribute VB_Name = "jsck"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Const SWP_NOSIZE = &H1
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOIORDER = &H4
Private Const SWP_NOREDRAW = &H8
Private Const SWP_NOACTIVATE = &H10
Private Const SWP_FRAMECHANGED = &H20
Private Const SWP_SHOWWINDOW = &H40
Private Const SWP_HIDEWINDOW = &H80
Private Const SWP_NOCOPYBITS = &H100
Private Const SWP_NOOWNERIORDER = &H200
Private Const SWP_DRAWFRAME = SWP_FRAMECHANGED
Private Const SWP_NOREPOSITION = SWP_NOOWNERIORDER
Private Const HWND_TOP = 0
Private Const HWND_BOTTOM = 1
Private Const HWND_TOPMOST = -1
Private Const HWND_NOTOPMOST = -2
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 mbontop As Boolean
Public si2#
Private Property Let ontop(setting As Boolean)
If setting Then
SetWindowPos hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
Else
SetWindowPos hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
End If
mbontop = setting
End Property
Private Property Get ontop() As Boolean
ontop = mbontop
End Property
Private Sub Form_Load()
' ontop = True
Me.Move frmkzwsj.Width - 3375, 1500
Call jsck_draw
End Sub
Private Sub Form_Unload(Cancel As Integer)
ontop = False
frmkzwsj.mnujsck.Checked = False
End Sub
'初始化pic控件坐標系
Private Sub Screen2_Intilize()
Dim i%, j%, si01#, si02#
With frmkzwsj
si01 = (.maxx - .minx) / Pic.Width
si02 = (.maxy - .miny) / Pic.Height
If si01 > si02 Then
si2 = si01
Else
si2 = si02
End If
Pic.Scale (.minx, .miny + Pic.Height * si2)-(.minx + Pic.Width * si2, .miny)
End With
Pic.Picture = LoadPicture()
End Sub
Private Sub Pic_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Call frmkzwsj.txyd(X, Y)
End Sub
Private Sub Pic_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Pic.MousePointer = 99
Pic.MouseIcon = LoadPicture("c:\rsrc\jxk.ico")
Pic.ToolTipText = "監(jiān)視窗口"
End Sub
Public Sub jsck_draw()
With frmkzwsj
If .wxdk Then
Call Screen2_Intilize
Call .drawkzwx(Pic)
Call .drawwd(Pic, si2)
End If
End With
End Sub
Public Sub qcfd()
ontop = False
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -