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 Box messages

Edit Box messages

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 4 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
    shiraztk
    wrote on last edited by
    #1

    Hi I have few edit boxes in a Dialog window. Now I want to process the characters entered in each edit boxes. I dont want to use OnChar or OnKeyDown becouse it will process all those messages to the main window. I just want to process the messages only when user types something in the edit box. How can I do that. btw: this is for finding some unwanted characters like @#@#!@$ being entered in the certain edit box. Thanks Regards The Best Relligion is Science. Once you understand it, you will know God.

    S J 2 Replies Last reply
    0
    • S shiraztk

      Hi I have few edit boxes in a Dialog window. Now I want to process the characters entered in each edit boxes. I dont want to use OnChar or OnKeyDown becouse it will process all those messages to the main window. I just want to process the messages only when user types something in the edit box. How can I do that. btw: this is for finding some unwanted characters like @#@#!@$ being entered in the certain edit box. Thanks Regards The Best Relligion is Science. Once you understand it, you will know God.

      S Offline
      S Offline
      Scozturk
      wrote on last edited by
      #2

      Hi, One solution is to implement the WM_CHANGE message. Each time it is called you will check the edit boxes... Well... I am a beginner ...

      S 1 Reply Last reply
      0
      • S Scozturk

        Hi, One solution is to implement the WM_CHANGE message. Each time it is called you will check the edit boxes... Well... I am a beginner ...

        S Offline
        S Offline
        shiraztk
        wrote on last edited by
        #3

        Hi Thankyou. It will work. But I want to get each character by character entered into the edit box. Regards The Best Relligion is Science. Once you understand it, you will know God.

        W 1 Reply Last reply
        0
        • S shiraztk

          Hi Thankyou. It will work. But I want to get each character by character entered into the edit box. Regards The Best Relligion is Science. Once you understand it, you will know God.

          W Offline
          W Offline
          wb
          wrote on last edited by
          #4

          maybe you should read an article about a validating edit control? click me

          1 Reply Last reply
          0
          • S shiraztk

            Hi I have few edit boxes in a Dialog window. Now I want to process the characters entered in each edit boxes. I dont want to use OnChar or OnKeyDown becouse it will process all those messages to the main window. I just want to process the messages only when user types something in the edit box. How can I do that. btw: this is for finding some unwanted characters like @#@#!@$ being entered in the certain edit box. Thanks Regards The Best Relligion is Science. Once you understand it, you will know God.

            J Offline
            J Offline
            James R Twine
            wrote on last edited by
            #5

            Enhanced Focus Edit Control with Input Filtering [^]    My control does filtering of input (also via paste operations).  IIRC, I could not get the WM_CHAR message to reflect from the control, so I used PreTranslateMessage on the edit control class itself, so I would only get WM_CHAR messages for that control.    Peace! -=- James Tip for inexperienced drivers: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"!
            Articles -- Products: Delete FXP Files & Check Favorites

            S 1 Reply Last reply
            0
            • J James R Twine

              Enhanced Focus Edit Control with Input Filtering [^]    My control does filtering of input (also via paste operations).  IIRC, I could not get the WM_CHAR message to reflect from the control, so I used PreTranslateMessage on the edit control class itself, so I would only get WM_CHAR messages for that control.    Peace! -=- James Tip for inexperienced drivers: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"!
              Articles -- Products: Delete FXP Files & Check Favorites

              S Offline
              S Offline
              shiraztk
              wrote on last edited by
              #6

              Hi I tried it but I was concerned about the processing. Anyway I think I will be doing this Thankyou for putting up suggestion Regards The Best Relligion is Science. Once you understand it, you will know God.

              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