CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Guest

    Can A MDI Form Exists Without Title Bar ?

    Hi,

    Can I make my MDI Form without Title Bar and Control Box.. Instead of Title Bar I want to place Sheridian Panel and Display Title of my main Application .

    Is it possible..

    Regards

    Prasad



  2. #2
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Yes you can...

    ... by setting these properties for the form with this order:

    1. Border Style = Fixed Dialog
    2. Control Box = False
    3. Caption = (nothing)

    Well, add a label at top of form, color it as you want, add another label over this with the caption you want (transparent color) and generally let your phantasy to create...


    Michael Vlastos
    Automation Engineer
    Company Modus SA
    Development Department
    Greece, Athens

  3. #3
    Guest

    Re: Yes you can...

    Hello Dr. Micheal,

    This is Prasad.. Hope ur properties work fine with normal form but not with MDI Forms.. Please Let me know for MDI Form.. MDI Form doesn't support all these properties which u have listed..

    Regards

    Prasad



  4. #4
    Guest

    Re: Can A MDI Form Exists Without Title Bar ?

    Yes u can work without a status bar
    for more details contact
    [email protected]
    [email protected]
    in detail !!

    Sunsui Labs


  5. #5
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: Can A MDI Form Exists Without Title Bar ?

    You can use the SetWindowLong API to change the MDI Forms Window Style to Exclue the Title Bar and Buttons, eg.


    private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (byval hwnd as Long, byval nIndex as Long, byval dwNewLong as Long) as Long
    private Const GWL_STYLE = (-16)
    private Const WS_OVERLAPPED = &H0&

    private Sub MDIForm_Load()
    Call SetWindowLong(me.hwnd, GWL_STYLE, WS_OVERLAPPED)
    End Sub





    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

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

Featured