Thread: no taskbar , but systray

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    17

    no taskbar , but systray

    Hi,

    i want to make an app that is never shown in the taskbar, bur always in the systray. I have searched the board but i only found example for minimizing to tray

  2. #2
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    I'm pretty sure there's a thread somewhere on the board about this.

    As for not having it show up in the taskbar, that's easy:

    Code:
    ShowWindow(hwnd,SW_HIDE);
    [email protected]
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  3. #3
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    I have searched the board but i only found example for minimizing to tray
    I searched for "tray" and found this link in a post straight away:
    http://blacksun.box.sk/aztek/winprog...nprog.html#2_2
    It should be perfectly adequate.
    [email protected]
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

  4. #4
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401
    Sorry, I made a mistake with the taskbar code.
    Code:
    ShowWindow(hwnd,SW_HIDE);
    Will completely hide the window.

    One option is to instead specify WS_EX_TOOLWINDOW as an extended window style with CreateWindowEx(). It wont be in the taskbar, but you wont have a system menu, and the caption bar is smaller.
    [email protected]
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting all window handles on taskbar
    By Yuri in forum Windows Programming
    Replies: 1
    Last Post: 06-17-2006, 04:31 PM
  2. Replies: 0
    Last Post: 11-08-2005, 02:28 AM
  3. Problem with an icon in the TaskBar status area
    By dit6a9 in forum Windows Programming
    Replies: 2
    Last Post: 08-16-2004, 10:33 PM
  4. How to minimize to the systray and not to the taskbar?
    By Templario in forum Windows Programming
    Replies: 3
    Last Post: 11-29-2002, 04:00 AM
  5. Systray and Taskbar control
    By tkb4u in forum C++ Programming
    Replies: 1
    Last Post: 12-24-2001, 08:53 AM