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. Creating icon in taskbar

Creating icon in taskbar

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpc++
4 Posts 4 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hello All, I wanted to create an application which do something, say popup message box after every 10 min. I wanted to create MFC application.And wanted to show running application icon in task bar (near clock). What should I do. Can you please suggest similar and how can I achieve same with C#? Regards.

    C S G 3 Replies Last reply
    0
    • L Lost User

      Hello All, I wanted to create an application which do something, say popup message box after every 10 min. I wanted to create MFC application.And wanted to show running application icon in task bar (near clock). What should I do. Can you please suggest similar and how can I achieve same with C#? Regards.

      C Offline
      C Offline
      Chandrasekharan P
      wrote on last edited by
      #2

      This link will help you. Adding Icons to the System Tray[^]

      Every new day is another chance to change your life.

      1 Reply Last reply
      0
      • L Lost User

        Hello All, I wanted to create an application which do something, say popup message box after every 10 min. I wanted to create MFC application.And wanted to show running application icon in task bar (near clock). What should I do. Can you please suggest similar and how can I achieve same with C#? Regards.

        S Offline
        S Offline
        Software_Developer
        wrote on last edited by
        #3

        CWnd::SetTimer allows you to : say popup a message box every 10 min. just put relevant code in CWnd::OnTimer

        void CMainFrame::OnStartTimer()
        {
        m_nTimer = SetTimer(1, 2000, 0);
        }

        void CMainFrame::OnStopTimer()
        {
        KillTimer(m_nTimer);
        }

        void CMainFrame::OnTimer(UINT nIDEvent)
        {
        MessageBeep(0xFFFFFFFF); // Beep
        MessageBox(HWND_DESKTOP,"Text here","Text here",MB_OK);
        // Call base class handler.
        CMDIFrameWnd::OnTimer(nIDEvent);
        }

        1 Reply Last reply
        0
        • L Lost User

          Hello All, I wanted to create an application which do something, say popup message box after every 10 min. I wanted to create MFC application.And wanted to show running application icon in task bar (near clock). What should I do. Can you please suggest similar and how can I achieve same with C#? Regards.

          G Offline
          G Offline
          Goto_Label_
          wrote on last edited by
          #4

          C# code here

          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