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. Does a CListCtrl accepts a member variable name in edit mode?

Does a CListCtrl accepts a member variable name in edit mode?

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
4 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.
  • A Offline
    A Offline
    Arris74
    wrote on last edited by
    #1

    Hello, It is probably a very bad question I post but why not trying. Actually I use a CListCtrl with Edit label mode set to true and I would like to input from within a row a member variable name or an object member name instead of inputting a value. This variable name or object name will be passed as argument to a function. Is there a simple solution to do it? Thnks for your kind help.

    M 1 Reply Last reply
    0
    • A Arris74

      Hello, It is probably a very bad question I post but why not trying. Actually I use a CListCtrl with Edit label mode set to true and I would like to input from within a row a member variable name or an object member name instead of inputting a value. This variable name or object name will be passed as argument to a function. Is there a simple solution to do it? Thnks for your kind help.

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      You want to be able to type in a variable name in the edit box? If so, you'll need to write code (maybe in response to LVN_ENDLABELEDIT) to map the entered text to a variable in your code. Mark

      "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

      A 1 Reply Last reply
      0
      • M Mark Salsbery

        You want to be able to type in a variable name in the edit box? If so, you'll need to write code (maybe in response to LVN_ENDLABELEDIT) to map the entered text to a variable in your code. Mark

        "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

        A Offline
        A Offline
        Arris74
        wrote on last edited by
        #3

        Mark, Thnks for your help. yes I want to type in a variable name in the edit box. could you please be more explicit about mapping the entered text? Do you mean that I must store the variable name and a string of a same name as the variable in a CMap or std::map and to compare the entered text with the string in the map? If the string is found I then get the variable related to the string?

        M 1 Reply Last reply
        0
        • A Arris74

          Mark, Thnks for your help. yes I want to type in a variable name in the edit box. could you please be more explicit about mapping the entered text? Do you mean that I must store the variable name and a string of a same name as the variable in a CMap or std::map and to compare the entered text with the string in the map? If the string is found I then get the variable related to the string?

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Sure, you could use a map. If there was only a few possibilities you could even use if/else if/else if you wanted to :) Mark

          "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

          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