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. Copy Text from dialog box

Copy Text from dialog box

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
5 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.
  • T Offline
    T Offline
    Thakur JAI SINGH
    wrote on last edited by
    #1

    Hi , I am using a dialog box and there are some text in the dialog box and want to copy that text from the dialog box . Just want to know how to do it.

    L D 2 Replies Last reply
    0
    • T Thakur JAI SINGH

      Hi , I am using a dialog box and there are some text in the dialog box and want to copy that text from the dialog box . Just want to know how to do it.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      See https://msdn.microsoft.com/en-us/library/windows/desktop/ms645489%28v=vs.85%29.aspx[^]. It really makes life easier if you read the documentation for the controls you use.

      1 Reply Last reply
      0
      • T Thakur JAI SINGH

        Hi , I am using a dialog box and there are some text in the dialog box and want to copy that text from the dialog box . Just want to know how to do it.

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

        Thakur JAI SINGH wrote:

        I am using a dialog box...

        So the dialog box is created and displayed via your code, or are you wanting to access a dialog box from some other app?

        Thakur JAI SINGH wrote:

        ...and there are some text in the dialog box...

        What type of control specifically?

        "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

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        T 1 Reply Last reply
        0
        • D David Crow

          Thakur JAI SINGH wrote:

          I am using a dialog box...

          So the dialog box is created and displayed via your code, or are you wanting to access a dialog box from some other app?

          Thakur JAI SINGH wrote:

          ...and there are some text in the dialog box...

          What type of control specifically?

          "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

          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

          T Offline
          T Offline
          Thakur JAI SINGH
          wrote on last edited by
          #4

          @DavidCroww Dialog box is displayed via my code. And there are lots of text on my dialog box and I have to copy the whole text available there on the dialog box.

          D 1 Reply Last reply
          0
          • T Thakur JAI SINGH

            @DavidCroww Dialog box is displayed via my code. And there are lots of text on my dialog box and I have to copy the whole text available there on the dialog box.

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

            So if the dialog box belongs to your app, and you are populating the controls on it, then don't you already have access to the text?

            "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

            "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

            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