编程封闭训练(封闭训练什么意思)

2023-12-21 12:58:24 数码极客 bianji01

 

请网络编程高手帮帮我的忙!帮我封闭窗口上的X!最好作个教程!

让窗体的关闭按钮按了没有反应------------------------privatE Sub Form_UnLoad(Cancel As Integer)Cancel = True让窗体的关闭按钮失效------------------------Public Declare Function GetSysteMMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As LongPublic Declare Function DeleteMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As LongPublic Const MF_BYPOSITION = &H400&Sub DeleteXButton(ByVal hwnd As Long)Dim theSystemMenu As LongtheSystemMenu = GetSystemMenu(hwnd, 0)Call DeleteMenu(theSystemMenu, 6, MF_BYPOSITION)Call DeleteMenu(theSystemMenu, 5, MF_BYPOSITION)End Sub

声明:易趣百科所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系315127732@qq.com
广告位招租
横幅广告