|
-
Jan 12th, 2009, 05:24 PM
#1
Lively Member
Re: Removing The Border & Title of an MDI Parent Form
How would you remove the single border from the above code? So that this removes the single boder and stop from resizing the MDIform.
-
Mar 31st, 2009, 04:57 AM
#2
New Member
Re: Removing The Border & Title of an MDI Parent Form
 Originally Posted by mathy2007
How would you remove the single border from the above code? So that this removes the single boder and stop from resizing the MDIform
I was looking to do the exact samething last night ... and eventually found the solution elsewhere :
just define another constant :
Code:
Const WS_THICKFRAME = &H40000
and use the following ( NB. you no longer need to "manually" remove the min and max boxes )
Code:
Dim L As Long
L = GetWindowLong(Me.hwnd, GWL_STYLE)
L = L And Not (WS_THICKFRAME)
L = L Xor WS_CAPTION
L = SetWindowLong(Me.hwnd, GWL_STYLE, L)
-
Jan 26th, 2010, 08:41 AM
#3
Junior Member
Re: Removing The Border & Title of an MDI Parent Form
works great! thanks!
as long as you dont have a statusbar on the form
i am using a mdiform with a statusbar on the bottom and now the resize function is moved to the statusbar, which looks funny, but is not what i want 
i tried using the hwnd of the statusbar instead, but that didnt work either
does anyone have a clue how to create an mdiform which cant be resized and has no caption/controlbox and no border ?
Women forgive but never forget. Men forget but never forgive.
-
May 28th, 2019, 09:05 AM
#4
New Member
Re: Removing The Border & Title of an MDI Parent Form
Thanks a lot bro
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|