It looks like he's saving them in m_NumberGrid.

The nID you need is part of the CStatic::Create() method. It has a default of 0xffff as coded above. You need to supply one, then use it in your call to SubclassDlgItem().