Reputation: 21753
I'm new to c++ and MFC. I am working on a large project, and I need to find the resource definition for a control that is on a form. I am having a very difficult time finding the right resource.
I can identify the control at runtime using spy++, but I have not found anything in the properties that leads me to the correct resource definition. What are some good techniques for tracking down a control in code if I know how to get to it at runtime?
Upvotes: 1
Views: 368
Reputation: 425
IDC_YOUR_CONTROL is what you need.
Of cause, this solution applicable only for static defined in resource .rc controls. Is controls are created dynamically, you have to investigate source code manually (usually CDialog::OnInitialize() method for MFC dialog)
Upvotes: 2