CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2000
    Location
    New Jersey
    Posts
    968

    Wrapper class to do minimize to tray and small minus minimize button

    I'm looking for a wrapper class that can do minimize to tray and add the small minus minimize button on the top left corner of an application.

    I’ve seen code for adding logic to minimize to tray, but I haven’t found any code that can add the small minimize button. For anyone familiar with Kazaa Lite, the minimize button I’m looking for is the one seen on the right upper corner of Kazaa Lite. I’ve seen it on a few other applications, but I don’t remember their names.

    Does anyone have any good links for this?
    David Maisonave
    Author of Policy Based Synchronized Smart Pointer
    http://axter.com/smartptr


    Top ten member of C++ Expert Exchange.
    C++ Topic Area

  2. #2
    Join Date
    Nov 2006
    Posts
    120

    Re: Wrapper class to do minimize to tray and small minus minimize button

    Are you looking for MFC based classes?

    I don't know what you mean by the minimise button. My copy of kazaa lite has a normal windows minimise button next to the maximise button. Can you explain?

  3. #3
    Join Date
    Aug 2000
    Location
    New Jersey
    Posts
    968

    Re: Wrapper class to do minimize to tray and small minus minimize button

    Quote Originally Posted by Mark Xa
    Are you looking for MFC based classes?

    I don't know what you mean by the minimise button. My copy of kazaa lite has a normal windows minimise button next to the maximise button. Can you explain?
    I prefer MFC, but I can use non-MFC, and adapt the code.

    Do you have Kazaa or Kazaa Lite.
    Regular Kazaa does not have the small minimize button.
    Kazaa lite has a small minimize button that looks like it has a minize sign.

    The regular minimize button looks like it has an underscore.


    I just looked at my version of Kazaa Lite, and I realize I have Kazaa Lite Revolution.

    I'm not sure if that feature is only in that version.
    David Maisonave
    Author of Policy Based Synchronized Smart Pointer
    http://axter.com/smartptr


    Top ten member of C++ Expert Exchange.
    C++ Topic Area

  4. #4
    Join Date
    Nov 2006
    Posts
    120

    Re: Wrapper class to do minimize to tray and small minus minimize button


  5. #5
    Join Date
    Aug 2000
    Location
    New Jersey
    Posts
    968

    Re: Wrapper class to do minimize to tray and small minus minimize button

    Quote Originally Posted by Mark Xa

    I looked at that before I posted this question, and it doesn't have the key item I'm looking for, which is the small minimize button logic.
    David Maisonave
    Author of Policy Based Synchronized Smart Pointer
    http://axter.com/smartptr


    Top ten member of C++ Expert Exchange.
    C++ Topic Area

  6. #6
    Join Date
    Nov 2006
    Posts
    120

    Re: Wrapper class to do minimize to tray and small minus minimize button

    You will have to do the small minimise button separately.

    I guess you can create a normal button with CreateWindow and move it into the title bar. I have never tried this however.

    By the way, in Visual Studio 2005, what's the method to add a message handler to the message map if you are using MFC? Is the class wizard now redundant? It's been a long time since I have gone near MFC.

  7. #7
    Join Date
    Aug 2000
    Location
    New Jersey
    Posts
    968

    Re: Wrapper class to do minimize to tray and small minus minimize button

    I found the following link:
    http://www.codeproject.com/buttonctr...tionButton.asp

    It seems to have the code I need to do this, but I would still prefer some code that has both minimize tray logic, and smal mimimize button logic.
    David Maisonave
    Author of Policy Based Synchronized Smart Pointer
    http://axter.com/smartptr


    Top ten member of C++ Expert Exchange.
    C++ Topic Area

  8. #8
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: Wrapper class to do minimize to tray and small minus minimize button

    Well, can you show us how looks that cool Kazaa Lite button?
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  9. #9
    Join Date
    Aug 2000
    Location
    New Jersey
    Posts
    968

    Re: Wrapper class to do minimize to tray and small minus minimize button

    Check out the following link:
    http://axter.com/KazaaLiteRev.jpg
    David Maisonave
    Author of Policy Based Synchronized Smart Pointer
    http://axter.com/smartptr


    Top ten member of C++ Expert Exchange.
    C++ Topic Area

  10. #10
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: Wrapper class to do minimize to tray and small minus minimize button

    See Adding Buttons to Dialog Caption codeguru article.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  11. #11
    Join Date
    Nov 2006
    Posts
    120

    Re: Wrapper class to do minimize to tray and small minus minimize button

    You can add buttons to the non-client area directly by using a hook:

    See here for an example:

    http://www.codeproject.com/shell/iconizer.asp

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