CPropertySheet in a CFormView
Posted on 1997-06-12
I have run into a problem embedding a CPropertySheet into a CFormView as a child window. What I am doing is implementing a "find" view window, kind of like the find dialog in Windows 95.
I basically create the CPropertySheet as a child window of my view and then add my property pages. In addition, I have a few controls that are part of the underlying CFormView too. Things work fine when I compile for Win 3.x but I get an exception under Win32. The exception cannot be ignored, my application basically crashes.
I am using MSVC 4.2b and I get the exception in CPropertySheet::Create() on the following line:
HWND hWnd = (HWND)PropertySheet(&m_psh);