Click to See Complete Forum and Search --> : why control ID is not updated?
young2
August 2nd, 2005, 04:26 PM
I am developing a dialog form application, I have did many times , and anyting is going well. right now, I face a rare problem, when I add control to the dialog form, I change the ID name in the properity and I did not see update when I try to add variable to the control, I do not know what setting might cause this problem. even without changing the ID, I still could not see the default ID, except the IDOK, IDCANCLE, and 1001 (which I thing this is the ID number which I did not like, has no meaning).
please help me to find out how to let the program automatically updated the ID, so that I can add variable or event easily.
g_gili
August 2nd, 2005, 06:22 PM
I am developing a dialog form application, I have did many times , and anyting is going well. right now, I face a rare problem, when I add control to the dialog form, I change the ID name in the properity and I did not see update when I try to add variable to the control, I do not know what setting might cause this problem. even without changing the ID, I still could not see the default ID, except the IDOK, IDCANCLE, and 1001 (which I thing this is the ID number which I did not like, has no meaning).
please help me to find out how to let the program automatically updated the ID, so that I can add variable or event easily.
I faced this problem to. Lets say that you create a dialog based application your dialog is named IDD_DIALOG1(your classes are build to).
You change your dialog name to IDD_MYDIALOG then you canot add variables because you changed your dialog ID. You have to change(to set in your header file your dialog ID in ex.CYourDialog.h at the data dialog
ex:
enum { IDD = IDD_YOURDIALOG}; //find this and set your current dialog
Maybe this is the problem!
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.