Why can not I get the resource ID of a dialog using GetDlgCtrlID?

int CTestDlg::GetID()
{
return GetDlgCtrlID();
}