Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConvert Resource Names to IDs Pin
cagespear16-Sep-08 20:43
cagespear16-Sep-08 20:43 
AnswerRe: Convert Resource Names to IDs Pin
Rane16-Sep-08 21:35
Rane16-Sep-08 21:35 
GeneralRe: Convert Resource Names to IDs Pin
cagespear16-Sep-08 21:56
cagespear16-Sep-08 21:56 
GeneralRe: Convert Resource Names to IDs Pin
Cedric Moonen16-Sep-08 22:04
Cedric Moonen16-Sep-08 22:04 
GeneralRe: Convert Resource Names to IDs Pin
Rane17-Sep-08 0:02
Rane17-Sep-08 0:02 
AnswerRe: Convert Resource Names to IDs Pin
Iain Clarke, Warrior Programmer16-Sep-08 21:46
Iain Clarke, Warrior Programmer16-Sep-08 21:46 
GeneralRe: Convert Resource Names to IDs Pin
cagespear16-Sep-08 22:11
cagespear16-Sep-08 22:11 
GeneralRe: Convert Resource Names to IDs Pin
Cedric Moonen16-Sep-08 22:19
Cedric Moonen16-Sep-08 22:19 
cagespear wrote:
Ctrl IDs are autogenerated by compiler


It is generated by the resource editor, not by the compiler. It means that once your UI is done and you don't touch it anymore, you can recompile your project as many times as you like and the Ids won't be changed. Furthermore, nothing prevents you to open the resource file with a text editor and assign the Ids yourself manually (you have to take care about not assigning an existing value).
So, I think using the control Id in your xml is perfectly fine (and that's the way I would follow).

If you design your UI, adding new controls won't change the Id of existing controls (AFAIK because I never saw something like that happening).

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

GeneralRe: Convert Resource Names to IDs Pin
cagespear16-Sep-08 23:12
cagespear16-Sep-08 23:12 
GeneralRe: Convert Resource Names to IDs Pin
Cedric Moonen16-Sep-08 22:25
Cedric Moonen16-Sep-08 22:25 
AnswerRe: Convert Resource Names to IDs Pin
Cedric Moonen16-Sep-08 21:59
Cedric Moonen16-Sep-08 21:59 
GeneralRe: Convert Resource Names to IDs Pin
cagespear16-Sep-08 22:18
cagespear16-Sep-08 22:18 
AnswerRe: Convert Resource Names to IDs Pin
Iain Clarke, Warrior Programmer17-Sep-08 0:33
Iain Clarke, Warrior Programmer17-Sep-08 0:33 
QuestionGetUserName() API failing condition Pin
ktm TechMan16-Sep-08 20:42
ktm TechMan16-Sep-08 20:42 
AnswerRe: GetUserName() API failing condition Pin
Rajesh R Subramanian16-Sep-08 20:58
professionalRajesh R Subramanian16-Sep-08 20:58 
GeneralRe: GetUserName() API failing condition Pin
ktm TechMan16-Sep-08 22:27
ktm TechMan16-Sep-08 22:27 
GeneralRe: GetUserName() API failing condition Pin
Rajesh R Subramanian16-Sep-08 22:56
professionalRajesh R Subramanian16-Sep-08 22:56 
JokeRe: GetUserName() API failing condition Pin
TheRealEye17-Sep-08 0:58
TheRealEye17-Sep-08 0:58 
AnswerRe: GetUserName() API failing condition Pin
Hamid_RT17-Sep-08 8:20
Hamid_RT17-Sep-08 8:20 
Questionhello i want to redirecting functions using pointers only and i get 2 errors Pin
nah133716-Sep-08 18:53
nah133716-Sep-08 18:53 
AnswerRe: hello i want to redirecting functions using pointers only and i get 2 errors Pin
Cedric Moonen16-Sep-08 19:57
Cedric Moonen16-Sep-08 19:57 
AnswerRe: hello i want to redirecting functions using pointers only and i get 2 errors Pin
enhzflep16-Sep-08 20:12
enhzflep16-Sep-08 20:12 
GeneralRe: hello i want to redirecting functions using pointers only and i get 2 errors Pin
nah133716-Sep-08 20:55
nah133716-Sep-08 20:55 
GeneralRe: hello i want to redirecting functions using pointers only and i get 2 errors Pin
enhzflep16-Sep-08 21:15
enhzflep16-Sep-08 21:15 
GeneralRe: hello i want to redirecting functions using pointers only and i get 2 errors Pin
nah133717-Sep-08 10:49
nah133717-Sep-08 10:49 

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.