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. Inputting Keyboard events into a dialog box

Inputting Keyboard events into a dialog box

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
3 Posts 3 Posters 1 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
    User 1341842
    wrote on last edited by
    #1

    Hi, I am writing an application that can do the following 1. Start an application 2. Open up a dialog box in the application 3. Write a message into a text dialog box and commit it. I am having a problem with step 3. How do I pass along a string to write to a dialog box that is in focus. If this question has already been asked before, can you send me a pointer? Thanks. Lohith

    P B 2 Replies Last reply
    0
    • U User 1341842

      Hi, I am writing an application that can do the following 1. Start an application 2. Open up a dialog box in the application 3. Write a message into a text dialog box and commit it. I am having a problem with step 3. How do I pass along a string to write to a dialog box that is in focus. If this question has already been asked before, can you send me a pointer? Thanks. Lohith

      P Offline
      P Offline
      P_JAYAPRAKASH
      wrote on last edited by
      #2

      that means u wnat to update the edit box with some string? ALL THINGS ARE POSSIBLE UNTIL THEY ARE PROVED IMPOSSIBLE-AND EVEN THE IMPOSSIBLE MAY ONLY BE SO,AS OF NOW

      1 Reply Last reply
      0
      • U User 1341842

        Hi, I am writing an application that can do the following 1. Start an application 2. Open up a dialog box in the application 3. Write a message into a text dialog box and commit it. I am having a problem with step 3. How do I pass along a string to write to a dialog box that is in focus. If this question has already been asked before, can you send me a pointer? Thanks. Lohith

        B Offline
        B Offline
        Blake Miller
        wrote on last edited by
        #3

        Get window handle of the text box and use SetWindowText. Then send dialog a command message for the OK button press.

        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