I want to experiment with the SubclassWindow() function and here is what I did:
- Create a dialog based MFC app with a textbox (mapped to member variable m_myedit)
- Created a class CSubWnd derived from CWnd using classwizard. Didn't add any code to the class.
- In my dialog's class added a member CSubWnd m_test;
- In my dialog's OK button handler, add the following code to subclass the textbox's window.
I was hoping at least it should return TRUE. But instead, it gave assertion failure. May I know what is wrong here?