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. Enter Key killing my dialog [modified]

Enter Key killing my dialog [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++comquestion
3 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.
  • G Offline
    G Offline
    Ger Hayden
    wrote on last edited by
    #1

    I have a COM dialog where the enter (Return) key kills the dialog rather than activiating the focused button. I cant figure out whats wrong. Any ideas? GER -- modified at 19:18 Friday 25th August, 2006 The app is VC++6.0 using MFC

    Ger

    R J 2 Replies Last reply
    0
    • G Ger Hayden

      I have a COM dialog where the enter (Return) key kills the dialog rather than activiating the focused button. I cant figure out whats wrong. Any ideas? GER -- modified at 19:18 Friday 25th August, 2006 The app is VC++6.0 using MFC

      Ger

      R Offline
      R Offline
      RChin
      wrote on last edited by
      #2

      Just a guess, but see here[^].


      I Dream of Absolute Zero

      1 Reply Last reply
      0
      • G Ger Hayden

        I have a COM dialog where the enter (Return) key kills the dialog rather than activiating the focused button. I cant figure out whats wrong. Any ideas? GER -- modified at 19:18 Friday 25th August, 2006 The app is VC++6.0 using MFC

        Ger

        J Offline
        J Offline
        Justin Tay
        wrote on last edited by
        #3

        Do you manually set focus using SetFocus() instead of WM_NEXTDLGCTL? Is the button a standard button that is returning DLGC_BUTTON in response to WM_GETDLGCODE?

        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