Hello and thanks for reading.

I have a Property sheet in my Dialog application in which I have overridden the default operations of a few buttons. I've changed one of these buttons to "Clear". When it is clicked, I want to delete the contents of an edit box on one of the property pages. I'm trying to retrieve the CWnd of the edit box from the Property Sheet so that I can clear it out, but I'm not having any luck. Here's my code:
VB Code:
  1. CWnd*  pWndEdit;
  2. pWndEdit = GetActivePage()->GetDlgItem(IDC_EDIT_SUBJECT,GetActivePage()->m_hWnd);
I keep getting an error saying "IDC_EDIT_SUBJECT" is an undeclared identifier. How do I get the property sheet to recognize the ID of the edit box on the property page?

Thanks,

OneSource