Results 1 to 12 of 12

Thread: Removing The Border & Title of an MDI Parent Form

Hybrid View

  1. #1
    Lively Member
    Join Date
    Jul 2007
    Posts
    74

    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.

  2. #2
    New Member
    Join Date
    Mar 2009
    Posts
    2

    Re: Removing The Border & Title of an MDI Parent Form

    Quote Originally Posted by mathy2007 View Post
    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)

  3. #3
    Junior Member
    Join Date
    Apr 2002
    Location
    Alkmaar, the Netherlands
    Posts
    25

    Thumbs up 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.

  4. #4
    New Member
    Join Date
    May 2018
    Posts
    6

    Thumbs up 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
  •  



Click Here to Expand Forum to Full Width