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. button click not working

button click not working

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

    Hi all, i am working on an MFC application, just a small dialog to take password input from user... once the password has been entered in the edit box, if i click ENTER(IN KEYBORAD) a new character is appended to the password.. if i click manually on the OK button in the dialog things work properly..... So could i get some help on how to solve this issue so that once the user types the password and hits ENTER in KEYBORAD, the action is performed which should happen on OK button clicked on the dialog... Thanks...

    C D 2 Replies Last reply
    0
    • S Subrat Patnaik

      Hi all, i am working on an MFC application, just a small dialog to take password input from user... once the password has been entered in the edit box, if i click ENTER(IN KEYBORAD) a new character is appended to the password.. if i click manually on the OK button in the dialog things work properly..... So could i get some help on how to solve this issue so that once the user types the password and hits ENTER in KEYBORAD, the action is performed which should happen on OK button clicked on the dialog... Thanks...

      C Offline
      C Offline
      Cool_Dev
      wrote on last edited by
      #2

      did you set multi-line property to edit box? that can be one reason.

      1 Reply Last reply
      0
      • S Subrat Patnaik

        Hi all, i am working on an MFC application, just a small dialog to take password input from user... once the password has been entered in the edit box, if i click ENTER(IN KEYBORAD) a new character is appended to the password.. if i click manually on the OK button in the dialog things work properly..... So could i get some help on how to solve this issue so that once the user types the password and hits ENTER in KEYBORAD, the action is performed which should happen on OK button clicked on the dialog... Thanks...

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        Check out the ES_WANTRETURN and ES_MULTILINE styles.

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Man who follows car will be exhausted." - Confucius

        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