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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. alert messages

alert messages

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
7 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.
  • A Offline
    A Offline
    ask_you
    wrote on last edited by
    #1

    In the appication that i m developing,i wish to create an alert messages whenever certain condition is met. i have already created such an alert message using MessageBox but instead of that i know wish to show that alert as a popup from the tray which stays for few seconds and disappers atomatically. need suggestions on how to do.... ask_you

    B 1 Reply Last reply
    0
    • A ask_you

      In the appication that i m developing,i wish to create an alert messages whenever certain condition is met. i have already created such an alert message using MessageBox but instead of that i know wish to show that alert as a popup from the tray which stays for few seconds and disappers atomatically. need suggestions on how to do.... ask_you

      B Offline
      B Offline
      bneacetp
      wrote on last edited by
      #2

      See if the following article will help give you some pointers: http://www.codeproject.com/dialog/statusbarmsgwnd.asp[^] Happy Programming and God Bless! Internet::WWW::CodeProject::bneacetp

      A 1 Reply Last reply
      0
      • B bneacetp

        See if the following article will help give you some pointers: http://www.codeproject.com/dialog/statusbarmsgwnd.asp[^] Happy Programming and God Bless! Internet::WWW::CodeProject::bneacetp

        A Offline
        A Offline
        ask_you
        wrote on last edited by
        #3

        the article seems quite useful... thanx a lot....:)

        B 1 Reply Last reply
        0
        • A ask_you

          the article seems quite useful... thanx a lot....:)

          B Offline
          B Offline
          bneacetp
          wrote on last edited by
          #4

          Glad to help! :-D Happy Programming and God Bless! Internet::WWW::CodeProject::bneacetp

          A 1 Reply Last reply
          0
          • B bneacetp

            Glad to help! :-D Happy Programming and God Bless! Internet::WWW::CodeProject::bneacetp

            A Offline
            A Offline
            ask_you
            wrote on last edited by
            #5

            i tried the the link that u had sent... i.e. http://www.codeproject.com/dialog/statusbarmsgwnd.asp well, i went through the code and tried to include it in my application. first i just included the stuff in the initdialog function to check whether it works.. well,to my pleasure, it worked. but then when i tried porting it to the actual location, it failed. i have created a thread in the application and want to call the code within the application. but when i do so, the application fails...it exits forcibly... a portion of the code is shown below: DWORD WINAPI CDlg::TestThread1(LPVOID lpParam) { CDlg* pThis = (CDlg*)lpParam; while(1) { if(pThis->m_hCommEvent1) { WaitForSingleObject(pThis->m_hCommEvent1, INFINITE); CStatusBarMsgWnd* t_MsgWnd = StatusBarMsgWnd::CreateObject( _T("Some idiot has signed in !!"),180, 150, 4000,10,CRect(30, 30, 130, 110),pThis); t_MsgWnd->PopMsg(); } } } Can u suggest wat modifications should i do...

            J 1 Reply Last reply
            0
            • A ask_you

              i tried the the link that u had sent... i.e. http://www.codeproject.com/dialog/statusbarmsgwnd.asp well, i went through the code and tried to include it in my application. first i just included the stuff in the initdialog function to check whether it works.. well,to my pleasure, it worked. but then when i tried porting it to the actual location, it failed. i have created a thread in the application and want to call the code within the application. but when i do so, the application fails...it exits forcibly... a portion of the code is shown below: DWORD WINAPI CDlg::TestThread1(LPVOID lpParam) { CDlg* pThis = (CDlg*)lpParam; while(1) { if(pThis->m_hCommEvent1) { WaitForSingleObject(pThis->m_hCommEvent1, INFINITE); CStatusBarMsgWnd* t_MsgWnd = StatusBarMsgWnd::CreateObject( _T("Some idiot has signed in !!"),180, 150, 4000,10,CRect(30, 30, 130, 110),pThis); t_MsgWnd->PopMsg(); } } } Can u suggest wat modifications should i do...

              J Offline
              J Offline
              jmkhael
              wrote on last edited by
              #6

              I would suggest to post (or send) a message back to the application from the thread, and to handle that message there doing the work Papa while (TRUE) Papa.WillLove ( Bebe ) ;

              A 1 Reply Last reply
              0
              • J jmkhael

                I would suggest to post (or send) a message back to the application from the thread, and to handle that message there doing the work Papa while (TRUE) Papa.WillLove ( Bebe ) ;

                A Offline
                A Offline
                ask_you
                wrote on last edited by
                #7

                How do i send the message back from the thread.. there are 4 threads. in each thread on some event, a menu has to pop up from the tray icon... please explain how to pass message back from the thread.... ask_you

                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