|
楼主 |
发表于 2010-1-19 19:36
|
显示全部楼层
Option Compare Database
Private Declare Function LoadCursorFromFile Lib "user32" Alias "LoadCursorFromFileA" (ByVal lpFileName As String) As Long
Private Declare Function DestroyCursor Lib "user32" (ByVal hCursor As Long) As Long
Private Declare Function SetClassLong Lib "user32" Alias "SetClassLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Const GCL_HCURSOR = (-12)
Dim TFblon As Boolean
'============================↑调用API函数,是为使用动画鼠标
Private Sub Form_Load() '调用动画鼠标
AniCur& = LoadCursorFromFile(CurrentProject.Path & "\Neko.ani")
SetClassLong Me.hwnd, GCL_HCURSOR, AniCur
End Sub
Private Sub Form_Unload(Cancel As Integer) '取消调用动画鼠标
DestroyCursor AniCur
End Sub
'=================↓调用属性中所藏的信息
Private Sub Command0_Click()
Dim db As Database
Dim doc As Document
Dim strMsg As String
Set db = CurrentDb
Set doc = db.Containers("Databases")![UserDefined]
strMsg = doc.Properties![MyMsg] ' MyMsg:信息(可以选其他数据类型)目录名
Me.文本 = strMsg
MsgBox strMsg, 64
Me.文本 = ""
End Sub |
|