This question was posted by another person on another forum, but it is exactly the issue I'm running into also. I dont know and cant find the answer he got, but someone here at EE helped him out to success and I need the same answers. Thank You.
I'm trying to dynamically subclass a field on a property page. The code looks like this:
The SubclassDlgItem fails on an ASSERT in
BOOL CWnd::Attach(HWND hWndNew)
ASSERT(m_hWnd == NULL); //OK
ASSERT(FromHandlePermanent(hWndNew) == NULL); //fails
I used the same override logic on an edit field in a regular dialog
without any problem. Is there something special about subclassing
on a property page? Or can someone point me to something else
I am doing wrong?