Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. About System Menu == Plz Help Urgent

About System Menu == Plz Help Urgent

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    parims
    wrote on last edited by
    #1

    I developed one application which adds the icon to System tray. When I press Start (in menu) it will start. But in our application ,.-> When I press 'X' in the dialog I don't want to terminate the application . When I press Shutdown (which is a menu item when I press on right click on icon )It has to shutdown. Plz How to handle code in OnSysCommand ., When I press 'X' in dialog.(Application Should not be terminate.Let it be there itself in the system tray ) Praveen Chowdam Kumar

    T T 2 Replies Last reply
    0
    • P parims

      I developed one application which adds the icon to System tray. When I press Start (in menu) it will start. But in our application ,.-> When I press 'X' in the dialog I don't want to terminate the application . When I press Shutdown (which is a menu item when I press on right click on icon )It has to shutdown. Plz How to handle code in OnSysCommand ., When I press 'X' in dialog.(Application Should not be terminate.Let it be there itself in the system tray ) Praveen Chowdam Kumar

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      override the OnClose() event handler


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      1 Reply Last reply
      0
      • P parims

        I developed one application which adds the icon to System tray. When I press Start (in menu) it will start. But in our application ,.-> When I press 'X' in the dialog I don't want to terminate the application . When I press Shutdown (which is a menu item when I press on right click on icon )It has to shutdown. Plz How to handle code in OnSysCommand ., When I press 'X' in dialog.(Application Should not be terminate.Let it be there itself in the system tray ) Praveen Chowdam Kumar

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        parims wrote: Plz How to handle code in OnSysCommand ., When I press 'X' in dialog.(Application Should not be terminate.Let it be there itself in the system tray ) You have one more option :- [How to remove close button from window?](http:// http://www.codeproject.com/useritems/cppfaq25apr8jun.asp#q501)[[^](http:// http://www.codeproject.com/useritems/cppfaq25apr8jun.asp#q501)]

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups