VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



How to Disable System Menues.

by Girish Patil (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

To disable form's system menues.(close,Min,Max)

API Declarations
Private Declare Function GetSystemMenu Lib "user32" ( _
ByVal hwnd As Long, ByVal bRevert As Long) As Long
Private Declare Function GetMenuItemInfo Lib "user32" Alias _
"GetMenuItemInfoA" (ByVal hMenu As Long, ByVal un As Long, _
ByVal b As Boolean, lpMenuItemInfo As MENUITEMINFO) As Long
Private Declare Function SetMenuItemInfo Lib "user32" Alias _
"SetMenuItemInfoA" (ByVal hMenu As Long, ByVal un As Long, _
ByVal bool As Boolean, lpcMenuItemInfo As MENUITEMINFO) As Long
Private Declare Function SendMessage Lib "user32" Alias _
"SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _
ByVal wParam As Long, lParam As Any) As Long

Rate How to Disable System Menues.

Download How to Disable System Menues.

Download How to Disable System Menues. (2 KB)

How to Disable System Menues. Comments

No comments have been posted about How to Disable System Menues.. Why not be the first to post a comment about How to Disable System Menues..

Post your comment

Subject:
Message:
0/1000 characters