Results 1 to 6 of 6

Thread: How do I add a button to any window's titlebar

  1. #1

    Thread Starter
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Question How do I add a button to any window's titlebar

    I've already found a lot of posts about the adding of a button to a window's titlebar, but none of them was suitable to use on other windows. The only thing I actually need is a kind of class which only requires hWnd.

  2. #2

    Thread Starter
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: How do I add a button to any window's titlebar

    Does anyone know how to do that?

  3. #3
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    Re: How do I add a button to any window's titlebar

    u cant directly add something to the titlebar ,instead use skins u will find them at vbaccelerator.com

  4. #4
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,729

    Re: How do I add a button to any window's titlebar

    Quote Originally Posted by litlewiki
    u cant directly add something to the titlebar ,instead use skins u will find them at vbaccelerator.com
    Actually it is possible. See Minimizer-XP

    I guess, adding the button in titlebar will not be a hard work.
    But for trapping the 'Button_Click' event, hooking may be the only way.
    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


  5. #5

    Thread Starter
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: How do I add a button to any window's titlebar

    yeah, i sure know it is possible... plenty of examples around here...
    my problem is the hooking outside a vb window. it works, but when i want to put it in the titlebar, it hides underneath it. i guess another thing that's impossible in vb...

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How do I add a button to any window's titlebar

    Sure its possible but to do it in other apps will require the use of a more powerful language like C++ or write a dll in C++ and then finish it with VB.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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