Search Tools Links Login

Window Size Restrictions


This code restrict the window size using a subclassing dll (Created by people from www.vbaccelerator.com). It consumes the WM_GETMINMAXINFO message. You can restrict the minimum and maximum tracking width and height. Also, you can restrict the maximized window left, top, height, width. I've wrote the code in a class for reuse.

Original Author: Co2

Inputs

Optionals:
MaxLeft
MaxTop
MaxWidth
MaxHeight
MaxTrackWidth
MaxTrackHeight
MinTrackWidth
MinTrackHeight

Assumptions

If you didn't know about those guys from www.vbaccelerator.com, take a look now ! It worth it.

Side Effects

If you push the End button in the Visual Basic developpement interface while the control is in use, vb will end in an error. This is cause by the subclassing dll.

API Declarations

Included.

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 83 times

Categories

Visual Basic 6

Attachments

CODE_UPLOAD60315232000.zip
Posted: 9/3/2020 3:45:00 PM
Size: 28,568 bytes


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.