Remove Min/Max Buttons From an MDI Form
Category:
Forms and ControlsType:
SnippetsDifficulty:
IntermediateAuthor:
AnonymousVersion Compatibility: Visual Basic 6
More information:
I previously had a lot of trouble finding code to deal with this on an MDI Form in VB6. There were samples to disable the close button, but those didn't port correctly for the SC_MINIMIZE/SC_MAXIMIZE.
The following code uses basic API calls to intercept window creation and change styles. Works under XP in VB6 SP5.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: