System Tray Problem

This is a discussion on System Tray Problem within the Windows Programming forums, part of the Platform Specific Boards category; I've docked my program to the system tray. and whenever the icon gets double-clicked a dialog appears. But when I ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    23

    Unhappy System Tray Problem

    I've docked my program to the system tray. and whenever the icon gets double-clicked a dialog appears. But when I minimize the dialog box (I've set the dialog to close when the minimize button gets pressed) and reopen it, the dialog it isn't focused. I've tried enablewindow(). If anyone knows a function or anything that can activate a dialog box. could please reply thanks.

    cal.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    23

    Unhappy Doesn't work

    I've tried that it just makes the bar on the start menu flash, it doesn't make the dialog box active thanks anyway.

    cal

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>I've tried that it just makes the bar on the start menu flash<<

    If you'd mentioned this in your original post it would have been clearer what the problem was and you wouldn't have had to wait so long before someone suggested you try ShowWindow.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  5. #5
    Registered User
    Join Date
    Aug 2004
    Posts
    23

    Unhappy Nope

    that does'nt work either.

    cal.

  6. #6
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,265
    How are you using ShowWindow?

    Code:
    ShowWindow(myHwnd,SW_RESTORE);

  7. #7
    Registered User
    Join Date
    Aug 2004
    Posts
    23

    reply

    I've tried them all (SW_SHOW/SW_SHOWNORMAL/SW_RESTORE.etc) they all don't work i'm gonna have to take the whole minimize thing out because i dn't think it's actually possible.

    cal

  8. #8
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    >>i dn't think it's actually possible.
    Not that I have anything to contribute, but I'd just like to point out that lots of programs do it... like Norton Antivirus, MSN Messenger, volume control... I think it probably IS possible
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. system() problem
    By swanley007 in forum C++ Programming
    Replies: 4
    Last Post: 07-28-2006, 12:40 PM
  2. Notification area (system tray) and other questions
    By BobS0327 in forum Linux Programming
    Replies: 0
    Last Post: 04-21-2006, 06:12 PM
  3. Dialog/System tray problem
    By calpol2004 in forum Windows Programming
    Replies: 0
    Last Post: 09-28-2004, 12:48 PM
  4. System Tray - minimizing
    By calpol2004 in forum Windows Programming
    Replies: 2
    Last Post: 09-07-2004, 10:44 AM
  5. Another problem swith my wide system MouseProc
    By darcome in forum Windows Programming
    Replies: 0
    Last Post: 10-03-2002, 01:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21