Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

RamboBones

System tray icons

This topic is 5490 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey people, I''m having a slight problem with system tray icons, actually the problem isn''t really with the system tray icons just the way I''m trying to use them, you''ll see. I''m trying to setup a program so that when you press the minimize button it creates a system tray icon and removes the window from the screen, now I can do everything BUT remove the window. You see it doesn''t matter what functions I call on the window it is STILL around or in the task bar. I figured I should destroy the window, which I''m happy to do, but the system tray icon needs a window to send it''s messages to, so I''m kinda stuck if you see what I mean. Can anyone give me some advice? If I''ve explained anything baddly and it needs clarifying don''t hesitate to ask.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
o hide the window using ShowWindow with SW_HIDE
o change the window extended style using SetWindowLong, anding out WS_EX_APPWINDOW and oring in WS_EX_TOOLWINDOW
o refresh the new window style setting using ShowWindow with SW_SHOWNOACTIVATE

Share this post


Link to post
Share on other sites
You might consider creating a message-only window and using that to handle the messages coming from the tray. After you create the message-only window you can destroy your other one.



Qui fut tout, et qui ne fut rien
Invader''s Realm

Share this post


Link to post
Share on other sites
Nah, the Anonymous Posters suggestion works fine, sorry bout taking so long to say so, had to go away for a few days

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!