Opropsheet.exe Create a Modeless OLE Property Sheet Using MFC (234545)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q234545 SUMMARY The OLE API OleCreatePropertyFrame() is used to create a
modal property sheet displaying the property pages supported by a given object.
This API does not support modeless creation. There is no equivalent API for
creating a modeless OLE property sheet. This article explains how to create one
using MFC.
Opropsheet.exe is a self extracting archive that contains
a Visual C++ 6.0 workspace (Opropsheet.dsw). This workspace contains two
projects, CTRL and PROPCLI. The CTRL project is an ATL full control. This
control supports two OLE property pages, the system-provided stock color and a
custom property page called PropPageCustom. The PROPCLI project is an MFC
dialog box-based client application for the CTRL control. This project also
contains the code for the modeless property sheet. After invoking the property
sheet, you can change properties and see the control get updated; because it is
modeless, you can leave it active and return to the main UI. REFERENCES Visual C++ documentation: TN038: MFC/OLE IUnknown
Implementation. Visual C++ documentation: Tom's Handy Dandy
MFC/COM/MIDL Recipe Book for Creating Custom Interfaces. For
additional information, please see the following articles in the Microsoft
Knowledge Base: 103788 Creating a modeless dialog box with MFC libraries
117500 Using Accelerators with MFC Modeless Dialog
146916 HOWTO: Create a Modeless CPropertySheet With Standard Buttons
MSDN, see "Inside OLE":
The
Property Page Site: IPropertyPageSite
Modification Type: | Minor | Last Reviewed: | 8/5/2004 |
---|
Keywords: | kbdownload kbCtrl kbDlg kbPropSheet kbsample KB234545 |
---|
|