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. Edit Control!! Doubt!!

Edit Control!! Doubt!!

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

    Hi All, Win32 console based application How to lock a Edit control such that it accepts only AlphaNumeric datas? I tried to get WM_COMMAND and then EN_CHANGE, and remove the invalid data and placed it back in the Edit control by using Sendmessage and SetDlgItemText. But, the cursor moves to the begin of the Edit control? How to move to the cursor back to the end of the text in the Edit Control?? Or else, is there is any other way to do that? With Best Regards, A.Ilamparithi

    A 1 Reply Last reply
    0
    • I Ilamparithi

      Hi All, Win32 console based application How to lock a Edit control such that it accepts only AlphaNumeric datas? I tried to get WM_COMMAND and then EN_CHANGE, and remove the invalid data and placed it back in the Edit control by using Sendmessage and SetDlgItemText. But, the cursor moves to the begin of the Edit control? How to move to the cursor back to the end of the text in the Edit Control?? Or else, is there is any other way to do that? With Best Regards, A.Ilamparithi

      A Offline
      A Offline
      amit sebiz
      wrote on last edited by
      #2

      Re try catching WM_CHAR message, if not a valid result set nChar to 0; Good Luck.

      I 1 Reply Last reply
      0
      • A amit sebiz

        Re try catching WM_CHAR message, if not a valid result set nChar to 0; Good Luck.

        I Offline
        I Offline
        Ilamparithi
        wrote on last edited by
        #3

        Hi, What is nChar?? I am not able to catch the WM_CHAR message. Control is not coming there. Instead it is going to WM_COMMAND. How to do it? With Thanks, A.Ilamparithi

        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