frmFloatSearch.frm
上传用户:davilee3
上传日期:2015-04-22
资源大小:986k
文件大小:2k
源码类别:

浏览器

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Begin VB.Form frmFloatSearch 
  3.    BorderStyle     =   5  'Sizable ToolWindow
  4.    ClientHeight    =   2325
  5.    ClientLeft      =   60
  6.    ClientTop       =   60
  7.    ClientWidth     =   1575
  8.    ControlBox      =   0   'False
  9.    BeginProperty Font 
  10.       Name            =   "宋体"
  11.       Size            =   9
  12.       Charset         =   134
  13.       Weight          =   400
  14.       Underline       =   0   'False
  15.       Italic          =   0   'False
  16.       Strikethrough   =   0   'False
  17.    EndProperty
  18.    LinkTopic       =   "Form1"
  19.    MaxButton       =   0   'False
  20.    MinButton       =   0   'False
  21.    ScaleHeight     =   2325
  22.    ScaleWidth      =   1575
  23.    ShowInTaskbar   =   0   'False
  24.    StartUpPosition =   3  'Windows Default
  25.    Begin VB.ListBox List1 
  26.       Height          =   2220
  27.       IntegralHeight  =   0   'False
  28.       Left            =   120
  29.       Style           =   1  'Checkbox
  30.       TabIndex        =   0
  31.       Top             =   60
  32.       Width           =   2475
  33.    End
  34. End
  35. Attribute VB_Name = "frmFloatSearch"
  36. Attribute VB_GlobalNameSpace = False
  37. Attribute VB_Creatable = False
  38. Attribute VB_PredeclaredId = True
  39. Attribute VB_Exposed = False
  40. Option Explicit
  41. Private Sub Form_Deactivate()
  42. Unload Me
  43. End Sub
  44. Private Sub Form_Load()
  45. SetPos
  46. End Sub
  47. Private Sub Form_LostFocus()
  48. Unload Me
  49. End Sub
  50. Private Sub Form_Resize()
  51. List1.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight
  52. End Sub
  53. Public Sub SetPos()
  54. Dim tpt As POINTAPI
  55. Call GetCursorPos(tpt)
  56. 'tPt.x = tPt.x
  57. 'tPt.y = tPt.y - 10
  58. If tpt.x * 15 + Me.Width > Screen.Width Then
  59.     tpt.x = (Screen.Width - Me.Width) / 15
  60. End If
  61. If tpt.x < 0 Then tpt.x = 0
  62. If tpt.y * 15 + Me.Height > Screen.Height Then
  63.     tpt.y = (Screen.Height - Me.Height) / 15
  64. End If
  65. If tpt.y < 0 Then tpt.y = 0
  66. Me.Move tpt.x * 15, tpt.y * 15 + 300
  67. End Sub