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. Mouse over button

Mouse over button

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
3 Posts 2 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
    Pryabu
    wrote on last edited by
    #1

    Hi all, In a dialog,im having a button.If i move my mouse over that button,I need to open a file.How to find out wther the mouse is over a button.I subclass that CButton class and captured that mouse action over a button using OnMouseMove function.But how can i send this response to parent dialog? Can anyone please help me? Thanks,

    C 1 Reply Last reply
    0
    • P Pryabu

      Hi all, In a dialog,im having a button.If i move my mouse over that button,I need to open a file.How to find out wther the mouse is over a button.I subclass that CButton class and captured that mouse action over a button using OnMouseMove function.But how can i send this response to parent dialog? Can anyone please help me? Thanks,

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      you could: 1. send a message to the parent CWnd or 2. pass a pointer to the parent to the button on creation, then call a public member on the parent

      image processing toolkits | batch image processing

      P 1 Reply Last reply
      0
      • C Chris Losinger

        you could: 1. send a message to the parent CWnd or 2. pass a pointer to the parent to the button on creation, then call a public member on the parent

        image processing toolkits | batch image processing

        P Offline
        P Offline
        Pryabu
        wrote on last edited by
        #3

        thanks a lot

        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