移动无边框窗体代码-杜小杰
Access软件网QQ交流学习群(群号码198465573),欢迎您的加入!
首页 >技术文章> Access数据库-模块/函数/VBA


移动无边框窗体代码

发表时间:2012/6/9 8:50:16 评论(0) 浏览(5610)  评论 | 加入收藏 | 复制
   
摘 要:如下
正 文:
模块:

Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

Declare Function ReleaseCapture Lib "user32" () As Long

Public Const WM_NCLBUTTONDOWN = &HA1

Public Const HTCAPTION = 2

 

应用

Private Sub Form_Close()

DoCmd.RunCommand acCmdAppMaximize

End Sub

 

Private Sub Form_Load()

DoCmd.RunCommand acCmdAppMinimize

End Sub

 

Private Sub XPForm_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)

 If Button = 1 Then

    ReleaseCapture

    SendMessage Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&

 End If

End Sub

 

Private Sub 命令20_Click()

DoCmd.Close

End Sub

Access软件网交流QQ群(群号:198465573)
 
 相关文章
移动无边框窗体例程\让窗体没有边框示例  【竹笛  2003/12/13】
常见问答
技术分类
相关资源
文章搜索
关于作者

杜小杰

文章分类

文章存档

友情链接