by Angsuman Banerji (23 Submissions)
Category: Registry
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 6th December 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
The code defines the functionality of a Close Button. The code is rated A+++ by the Solution Developers of USA.
API Declarations
Public Declare Function RemoveMenu Lib "user32" _
(ByVal hMenu As Long, _
ByVal nPosition As Long, _
ByVal wFlags As Long) As Long
Public Declare Function GetSystemMenu Lib "user32" _
(ByVal hWND As Long, _
ByVal bRevert As Long) As Long
Dim hSysMenu As Long
hSysMenu = GetSystemMenu(hWND, 0)
RemoveMenu hSysMenu, 6, MF_BYPOSITION
RemoveMenu hSysMenu, 5, MF_BYPOSITION
End Sub
No comments have been posted about The code defines the functionality of a Close Button. The code is rated A+++ by the Solution Develo. Why not be the first to post a comment about The code defines the functionality of a Close Button. The code is rated A+++ by the Solution Develo.