Click to See Complete Forum and Search --> : Size Grip
jedjed
Nov 18th, 1999, 02:21 AM
Hi,
Does anyone know how to remove the Size Grip from a form. I can't find a Class name or Control ID for it so I can't trap when its being created and destroy that message.
Thanks
MAP
Aaron Young
Nov 18th, 1999, 03:14 AM
Set the Forms BorderStyle to anything other than Sizeable.
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net
jedjed
Nov 18th, 1999, 03:21 AM
The Form is the A Windows CommonDialog so I can't set it to sizable or not.
I did however just solve the problem.
The Size Grips class name is 'ScrollBar'
and its WindowStyle is '&H56020014'.
If you trap the dialog as its being created in the Timer event you can override its message handler. Write a message handler for the Scrollbar class and when the WM_PAINT message is sent destroy the Size Grip window.
thanks
MAP
Aaron Young
Nov 18th, 1999, 03:29 AM
But a CommonDialog isn't sizable anyway!?
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net
jedjed
Nov 18th, 1999, 03:44 AM
The new commondialog dll for win98/2000 have a new Explorer look and it is resizable.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.