Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Windowless Applications

Windowless Applications

Scheduled Pinned Locked Moved The Lounge
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Some applications work in the background and have no window (but usually have a system tray icon) such as antivirus programs. Do these applications create a window but don't show it (by not using ShowWindow function) or there's a way to get around having to create a window? Thanks

    N 1 Reply Last reply
    0
    • L Lost User

      Some applications work in the background and have no window (but usually have a system tray icon) such as antivirus programs. Do these applications create a window but don't show it (by not using ShowWindow function) or there's a way to get around having to create a window? Thanks

      N Offline
      N Offline
      Nick Carruthers
      wrote on last edited by
      #2

      In order to create an icon in the system tray, you have to have a window. If you look at the Shell_NotifyIcon function, you pass it a window handle as part of the NOTIFYICONDATA structure. It is to this window that any messages (usually mouse move/click) are passed for you to respond to (e.g. show a popup menu). So in short, yes, you have to create a window. Nick Carruthers

      C L 2 Replies Last reply
      0
      • N Nick Carruthers

        In order to create an icon in the system tray, you have to have a window. If you look at the Shell_NotifyIcon function, you pass it a window handle as part of the NOTIFYICONDATA structure. It is to this window that any messages (usually mouse move/click) are passed for you to respond to (e.g. show a popup menu). So in short, yes, you have to create a window. Nick Carruthers

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        And if you're really cunning, you can use it for a splash screen before you hide it... Christian The content of this post is not necessarily the opinion of my yadda yadda yadda. To understand recursion, we must first understand recursion.

        1 Reply Last reply
        0
        • N Nick Carruthers

          In order to create an icon in the system tray, you have to have a window. If you look at the Shell_NotifyIcon function, you pass it a window handle as part of the NOTIFYICONDATA structure. It is to this window that any messages (usually mouse move/click) are passed for you to respond to (e.g. show a popup menu). So in short, yes, you have to create a window. Nick Carruthers

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Thanks a lot. I still have another question .. Is it possible to write a Windows application that doesn't have a window and doesn't even appear in the "Close Program" dialog box?

          S 1 Reply Last reply
          0
          • L Lost User

            Thanks a lot. I still have another question .. Is it possible to write a Windows application that doesn't have a window and doesn't even appear in the "Close Program" dialog box?

            S Offline
            S Offline
            Simon Capewell
            wrote on last edited by
            #5

            You could write a service application

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups