Does anybody know the meaning of the acronym IDC
as it is used when programming windows?
e.g. in the context of a CDialog application:
void CMyDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_STATIC_FRAME, m_StaticFrame);
}
Is it generally the ID of a not further specified Control (ID Control), as a Dialog would have the prefix IDD (ID Dialog)?
Is it generally the ID of a not further specified Control (ID Control), as a Dialog would have the prefix IDD (ID Dialog)?
Yes, that's precisely correct.
By convention, Win32 resource scripts use special prefixes to identify the type of an identifier.
A partial list looks something like this:
IDA
= An accelerator table resourceIDB
= A bitmap resourceIDC
= A command identifierIDD
= A dialog box resourceIDI
= An icon resourceIDM
= A menu command identifierIDR
= Multiple resource types, perhaps those common to an entire application or windowIDS
= A string resourceID
= An unknown or custom resourceSometimes, you'll see IDC
used for cursors, rather than command identifiers. It's hard to say without looking at the usage whether that's the case.
But note that using these is completely optional. It doesn't mean anything to the compiler or the computer, it's only designed to remind the programmer of what the identifier refers to.