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. I guess this is related to NC messages

I guess this is related to NC messages

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
8 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.
  • R Offline
    R Offline
    ROWALI
    wrote on last edited by
    #1

    Hello to everyone, I have developed a SDI MFC application. So what I want is when my mouse is hovering over the application window (any window.. main window, title, views anything), it should work properly, As the mouse moves out of application or windows , it should give some dialog box message that you are out of application area. now if mouse goes out of scope then it should not give so many dialog box messages.. only one is enough so that I wont be wasting time destryoying those messageboxes and go straight to application area. How can this be made? row

    N A 2 Replies Last reply
    0
    • R ROWALI

      Hello to everyone, I have developed a SDI MFC application. So what I want is when my mouse is hovering over the application window (any window.. main window, title, views anything), it should work properly, As the mouse moves out of application or windows , it should give some dialog box message that you are out of application area. now if mouse goes out of scope then it should not give so many dialog box messages.. only one is enough so that I wont be wasting time destryoying those messageboxes and go straight to application area. How can this be made? row

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      if ur tracking the mouse leaving by checking the NC messages u should have to keep the flags to prevent multiple message box beign displayed... Else use TrackMouseEvent API nave

      R 1 Reply Last reply
      0
      • N Naveen

        if ur tracking the mouse leaving by checking the NC messages u should have to keep the flags to prevent multiple message box beign displayed... Else use TrackMouseEvent API nave

        R Offline
        R Offline
        ROWALI
        wrote on last edited by
        #3

        I think TrackMouseEvent will be tracking only client area of the window . (also which handler I would be keeping this function) What I want is if the mouse is moving or clicking or hovering on any portion of the window, its ok, but when it completely goes out of application windows then it should give some kind of notification. -- modified at 8:04 Monday 19th June, 2006

        N N 2 Replies Last reply
        0
        • R ROWALI

          Hello to everyone, I have developed a SDI MFC application. So what I want is when my mouse is hovering over the application window (any window.. main window, title, views anything), it should work properly, As the mouse moves out of application or windows , it should give some dialog box message that you are out of application area. now if mouse goes out of scope then it should not give so many dialog box messages.. only one is enough so that I wont be wasting time destryoying those messageboxes and go straight to application area. How can this be made? row

          A Offline
          A Offline
          Anton Mikhalyov
          wrote on last edited by
          #4

          Use global or class variables to determine if message is already on screen. I guess I solve your problem? :~

          R 1 Reply Last reply
          0
          • R ROWALI

            I think TrackMouseEvent will be tracking only client area of the window . (also which handler I would be keeping this function) What I want is if the mouse is moving or clicking or hovering on any portion of the window, its ok, but when it completely goes out of application windows then it should give some kind of notification. -- modified at 8:04 Monday 19th June, 2006

            N Offline
            N Offline
            Nibu babu thomas
            wrote on last edited by
            #5

            Along with what naveen said use WM_MOUSELEAVE.


            Nibu thomas A Developer Programming tips[^]  My site[^]

            1 Reply Last reply
            0
            • A Anton Mikhalyov

              Use global or class variables to determine if message is already on screen. I guess I solve your problem? :~

              R Offline
              R Offline
              ROWALI
              wrote on last edited by
              #6

              Can you be more specific? I dont get it.

              1 Reply Last reply
              0
              • R ROWALI

                I think TrackMouseEvent will be tracking only client area of the window . (also which handler I would be keeping this function) What I want is if the mouse is moving or clicking or hovering on any portion of the window, its ok, but when it completely goes out of application windows then it should give some kind of notification. -- modified at 8:04 Monday 19th June, 2006

                N Offline
                N Offline
                Naveen
                wrote on last edited by
                #7

                ROWALI wrote:

                I think TrackMouseEvent will be tracking only client area of the window .

                no. check the dwFlags of the TRACKMOUSEEVENT structure.There u can find TME_NONCLIENT nave

                R 1 Reply Last reply
                0
                • N Naveen

                  ROWALI wrote:

                  I think TrackMouseEvent will be tracking only client area of the window .

                  no. check the dwFlags of the TRACKMOUSEEVENT structure.There u can find TME_NONCLIENT nave

                  R Offline
                  R Offline
                  ROWALI
                  wrote on last edited by
                  #8

                  Mine is a MFC SDI application. So where can I keep this function? in Application class's OnIdle even or where?

                  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