I am providing a way for the user to customize some screen settings, and I am storing the control IDs in a database as strings, ie "IDC_EDIT_BOX", etc. Is there any way I can take my string and use it as a constant? For example if I have:
CString m_sControl="IDC_EDIT_BOX";
I want to be able to do:
GetDlgItem(IDC_EDIT_BOX)->EnableWindow(TRUE);
Is there any way to change my string into a constant or am I going about this the wrong way?
Ed
CString m_sControl="IDC_EDIT_BOX";
I want to be able to do:
GetDlgItem(IDC_EDIT_BOX)->EnableWindow(TRUE);
Is there any way to change my string into a constant or am I going about this the wrong way?
Ed