Announcement

Collapse
No announcement yet.

Icon in system tray WITHOUT active DDT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Icon in system tray WITHOUT active DDT

    After six hours of cogitating and debugging, I have finally
    produced some code that demonstrates how a PB/DLL programmer
    can put his program's icon in the system tray and use it
    WITHOUT having to have a DDT being displayed. It uses the
    statement:

    DIALOG SHOW MODELESS DB CALL Proc()

    IMMEDIATELY followed by:

    DIALOG SHOW STATE DB, 0

    And, that is in the WinMain FUNCTION.

    The transition between showing it and turning off its display is
    so minuscle that I couldn't even see the DDT flash on the
    screen My system is a Pentium III 600EB running Win98 SE.

    If anybody wants me to post the code, reply to this message,
    and I'll post it in the Source Forum. Right now, I'm going to
    bed.




    ------------------
    Clay C. Clear

    http://www.v3space.com/a/a39/202/

    [email protected]
    [email protected]

  • #2
    Clay --
    If you want an icon in system tray only, you don't need DDT at all.
    Register SDK-window, then message loop (w/o ShowWindow/UpdateWindow).


    ------------------
    E-MAIL: [email protected]

    Comment


    • #3
      Semen -

      Will that work if the program uses the icon in the tray to
      generate popup menu's? That's what I was talking about my
      program doing.



      ------------------
      Clay C. Clear

      Comment


      • #4
        Of course, 100,1% sure


        ------------------
        E-MAIL: [email protected]

        Comment


        • #5
          Semen -

          Thanks! I have NO clue as to what you meant in your first reply
          to my original message other than ShowWindow/UpdateWindow, BUT,
          now that I know it can be done, I'll figure it out.

          Thanks, again!


          ------------------
          Clay C. Clear

          Comment

          Working...
          X