CDialog is just a wrapper representing a dialog window. The window and its controls arent created just because you instantiate a CDialog, they get created in the DoModal call.
They do exist when you're handling the INITDIALOG message.
In other words, adjust the dialog's OnInitDialog method to do your enabling stuff.
/Per
www.perfnurt.se