Click here to Skip to main content
15,886,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Edit Control Problem Pin
Jochen Arndt19-May-16 22:45
professionalJochen Arndt19-May-16 22:45 
GeneralRe: Edit Control Problem Pin
programmingalholic21-May-16 3:49
professionalprogrammingalholic21-May-16 3:49 
QuestionConvert string name to Control ID Name Pin
002comp17-May-16 22:03
002comp17-May-16 22:03 
AnswerRe: Convert string name to Control ID Name Pin
Richard MacCutchan17-May-16 22:16
mveRichard MacCutchan17-May-16 22:16 
GeneralRe: Convert string name to Control ID Name Pin
002comp17-May-16 22:19
002comp17-May-16 22:19 
GeneralRe: Convert string name to Control ID Name Pin
Richard MacCutchan17-May-16 22:42
mveRichard MacCutchan17-May-16 22:42 
GeneralRe: Convert string name to Control ID Name Pin
leon de boer18-May-16 19:36
leon de boer18-May-16 19:36 
AnswerRe: Convert string name to Control ID Name Pin
leon de boer18-May-16 19:51
leon de boer18-May-16 19:51 
I suspect you need all the buttons for something like I have done which was a grid display for a process plant control switches for pumps and the like.

What you can do is attach a text string as either a property of the button handle via "SetProp" or alternative set the string as
a resource using RT_STRING to the ID of the button and use FindResourceEx to pull back the string matching the button ID. The
String resources are stored in sections of up to 16 strings per section so you will need to provide a function to pull it back.

Here is a sort of normal code for pulling back a string resource
String Resources | Ruminations[^]

The SetProp way is easier but can only be created in the WM_CREATE of the button creation, or just after the CreateWindowEx call creating the button and so needs a little more setup work than a string resource list.
In vino veritas

AnswerRe: Convert string name to Control ID Name Pin
Gerry Schmitz19-May-16 5:54
mveGerry Schmitz19-May-16 5:54 
SuggestionRe: Convert string name to Control ID Name Pin
Krishnakumartg21-Sep-16 19:57
Krishnakumartg21-Sep-16 19:57 
QuestionRPN notation in C Pin
Member 1252915917-May-16 6:19
Member 1252915917-May-16 6:19 
GeneralRe: RPN notation in C Pin
harold aptroot17-May-16 6:29
harold aptroot17-May-16 6:29 
GeneralRe: RPN notation in C Pin
Member 1252915917-May-16 6:57
Member 1252915917-May-16 6:57 
GeneralRe: RPN notation in C Pin
harold aptroot17-May-16 7:03
harold aptroot17-May-16 7:03 
GeneralRe: RPN notation in C Pin
jeron117-May-16 7:29
jeron117-May-16 7:29 
GeneralRe: RPN notation in C Pin
David Crow17-May-16 8:14
David Crow17-May-16 8:14 
AnswerRe: RPN notation in C Pin
Richard MacCutchan17-May-16 20:50
mveRichard MacCutchan17-May-16 20:50 
QuestionPass by pointer not working Pin
Joe Smith IX15-May-16 5:52
Joe Smith IX15-May-16 5:52 
AnswerRe: Pass by pointer not working Pin
Victor Nijegorodov15-May-16 10:58
Victor Nijegorodov15-May-16 10:58 
GeneralRe: Pass by pointer not working Pin
Joe Smith IX17-May-16 8:34
Joe Smith IX17-May-16 8:34 
AnswerRe: Pass by pointer not working [fixed] Pin
CPallini15-May-16 22:08
mveCPallini15-May-16 22:08 
GeneralRe: Pass by pointer not working Pin
Joe Smith IX17-May-16 8:25
Joe Smith IX17-May-16 8:25 
GeneralRe: Pass by pointer not working Pin
CPallini17-May-16 9:58
mveCPallini17-May-16 9:58 
QuestionC string operations Pin
Member 1096409913-May-16 5:47
Member 1096409913-May-16 5:47 
AnswerRe: C string operations Pin
Richard MacCutchan13-May-16 6:10
mveRichard MacCutchan13-May-16 6:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.