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. Finding the current active button...

Finding the current active button...

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
4 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.
  • U Offline
    U Offline
    u6ik
    wrote on last edited by
    #1

    Hi All Could someone kindly let me know how to identify the currently highlighted (tabbed) button on a modeless dialog before it is pressed? I've looked at GetFocus but that seems to only apply to window focus. (Using MFC) Thanks :) u6ik

    C L U 3 Replies Last reply
    0
    • U u6ik

      Hi All Could someone kindly let me know how to identify the currently highlighted (tabbed) button on a modeless dialog before it is pressed? I've looked at GetFocus but that seems to only apply to window focus. (Using MFC) Thanks :) u6ik

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      A button is also a window (in fact, every control derives from CWnd so every control is also a window). So GetFocus will work ;)

      1 Reply Last reply
      0
      • U u6ik

        Hi All Could someone kindly let me know how to identify the currently highlighted (tabbed) button on a modeless dialog before it is pressed? I've looked at GetFocus but that seems to only apply to window focus. (Using MFC) Thanks :) u6ik

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        CButton::GetState Nunc est bibendum

        1 Reply Last reply
        0
        • U u6ik

          Hi All Could someone kindly let me know how to identify the currently highlighted (tabbed) button on a modeless dialog before it is pressed? I've looked at GetFocus but that seems to only apply to window focus. (Using MFC) Thanks :) u6ik

          U Offline
          U Offline
          u6ik
          wrote on last edited by
          #4

          Excellent... thanks all ;) u6ik

          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