Results 1 to 9 of 9

Thread: [RESOLVED] Vista ControlBox in XP

  1. #1

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Resolved [RESOLVED] Vista ControlBox in XP

    Hi all,

    I was wondering if anyone knows of a way to get the Vista titlebar in XP?

    Applications like, Windows media Player 11's titlebar, the new MSN Messenger, etc. I have attached an image of what I'm talking about.

    Anyone know how to achieve this without a custom control?

    Cheers,

    chem
    Attached Images Attached Images  
    Last edited by chemicalNova; Nov 9th, 2008 at 09:44 PM.

    Visual Studio 6, Visual Studio.NET 2005, MASM

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Vista ControlBox in XP

    Those applications draw their own non-client area. I've seen a C# code example and it was long. It's the "proper" way to create your own title bar rather than the hack of setting ControlBox to False and drawing a fake title bar in the client area but it was lots of unmanaged code and not for the feint-hearted. I don't think I have a link to that example any more but I'll look.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Vista ControlBox in XP

    I'm fairly sure this was it. It's not quite as bad as I recall.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Vista ControlBox in XP

    Ooooohhhhh.

    Lovely. Thanks jmc

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  5. #5
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Vista ControlBox in XP

    Quote Originally Posted by chemicalNova
    Ooooohhhhh.

    Lovely. Thanks jmc

    chem
    doesn't this sort of thing annoy users? A program done this way is not going to support system themes, let alone 3rd party programs that skin them such as windowblinds. IMHO i think you should stick with the stock buttons. Your program will not blend in with the look and feel the user has created on their system!
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  6. #6
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: [RESOLVED] Vista ControlBox in XP

    Not really.

  7. #7
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [RESOLVED] Vista ControlBox in XP

    Quote Originally Posted by DeanMc
    Not really.
    it does me. It's the reason i never use Safari.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  8. #8
    Frenzied Member
    Join Date
    Jul 2008
    Location
    Rep of Ireland
    Posts
    1,380

    Re: [RESOLVED] Vista ControlBox in XP

    I suppose it is the type of software that you create that should determine this. For instance business software is never going to be skinned but may require a pretty interface to appease the suits.

  9. #9
    New Member
    Join Date
    Oct 2009
    Posts
    1

    Question Re: Vista ControlBox in XP

    Hi. Did you manage to get the example code working OK for you?

    I just downloaded it and found that when you minimize and restore the test dialog app, Windows still displays the default minimize and maximize buttons (see attached image).

    Do you know how to fix this problem please?


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