Results 1 to 5 of 5

Thread: Shell_NotifyIcon (NIM_DELETE,&m_tray)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    Netherlands
    Posts
    115

    Shell_NotifyIcon (NIM_DELETE,&m_tray)

    where to put that code if I want this peace of code to be called when the dialog disappears??

    Please Help

    VisualPenguin
    ICQ :137108715
    MSN Messenger : [email protected]

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Either WM_CLOSE or WM_DESTROY depending on your exact needs.

    For when the dialogue has been closed by the user, use WM_CLOSE.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    Netherlands
    Posts
    115
    But I'm using MFC, where do I need to put it then?

    VisualPenguin
    ICQ :137108715
    MSN Messenger : [email protected]

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Use ClassWizard to add an OnClose handler and use that.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Location
    Netherlands
    Posts
    115
    yes, good idea.

    thanks for your help! it's working now!

    VIsualPenguin
    ICQ :137108715
    MSN Messenger : [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width