
Property pages in MFC Dialog application
Quote:
>> We are putting multiple property pages in a property sheet. This property
>> sheet is to be displayed on a dialog application. We have implemented it
>> as modeless.
>> But the program hangs when focus changes from a control of property page
>> to some other program. On debugging we found that it constantly give
>> WM_GETDLGCODE message.
I had a similar problem. Apparently you need to set the DS_CONTROL flag on
the property sheet - undocumented but vital. In my code it appears like
this:
m_MainPage = new CPropertySheet(AFX_IDS_APP_TITLE, this, 0);
m_MainPage->Create(this, DS_CONTROL | DS_CONTEXTHELP | DS_SETFONT |
WS_CHILD | WS_VISIBLE);
Hope this helps.
Michael K