VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



The code defines the functionality of a Close Button. The code is rated A+++ by the Solution Develo

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

Rate The code defines the functionality of a Close Button. The code is rated A+++ by the Solution Develo



    Dim hSysMenu As Long

    hSysMenu = GetSystemMenu(hWND, 0)
    RemoveMenu hSysMenu, 6, MF_BYPOSITION
    RemoveMenu hSysMenu, 5, MF_BYPOSITION
End Sub




Download this snippet    Add to My Saved Code

The code defines the functionality of a Close Button. The code is rated A+++ by the Solution Develo Comments

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.

Post your comment

Subject:
Message:
0/1000 characters