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