www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Getting an icon onto the System Tray [in win95]

↑ ↓ ← "Pramod Subramanyan" <pramod_sx rediffmail.com> writes:
How do you get an icon onto the system tray ?
Apr 25 2001
↑ ↓ → Jan Knepper <jan smartsoft.cc> writes:
Where on the system tray?
The clock/status area?

Add:
   NOTIFYICONDATA    notifyicondata =
   {
      sizeof ( NOTIFYICONDATA )        ,
      hwnd                                           ,
      0x<some id>                       ,
      NIF_ICON | NIF_MESSAGE | NIF_TIP ,
      WM_USER + 1                      ,
      hicon                ,
      "text"                 ,
   };

   Shell_NotifyIcon ( NIM_ADD, ¬ifyicondata );

Remove:
   NOTIFYICONDATA    notifyicondata =
   {
      sizeof ( NOTIFYICONDATA )        ,
      hwnd                   ,                // Same as above.
      0x<some id>                       ,    // Same as above
      0                                ,
      0                                ,
      0                                ,
      0                                ,
   };

   Shell_NotifyIcon ( NIM_DELETE, ¬ifyicondata );

Don't worry, be Kneppie!
Jan



Pramod Subramanyan wrote:

 How do you get an icon onto the system tray ?

Apr 25 2001