Results 1 to 3 of 3

Thread: Remove Maximise Button From MDI Parent

  1. #1
    Tokhra
    Guest
    Does anyone know how to remove or disable (preferably gray out) the Maximise button on an MDI Parent form?

    Tokhra

  2. #2
    Megatron
    Guest
    Code:
    Private Declare Function RemoveMenu Lib "user32" (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long
    Private Declare Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal bRevert As Long) As Long
    Private Const MF_BYPOSITION = &H400&
    
    Private Sub Form_Load()
        RemoveMenu GetSystemMenu(hwnd, 0), 4, MF_BYPOSITION
    End Sub

  3. #3
    Tokhra
    Guest
    Thats great thanks.

    Know how to make the actual button gray as well? If not, no problem.. at least you cant make the window maximised

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width