Creates a COlePropertiesDialog object.
COlePropertiesDialog( COleClientItem* pItem, UINT nScaleMin = 10, UINT nScaleMax = 500, CWnd* pParentWnd = NULL );
- Pointer to the document item whose properties are being accessed.
- Minimum scaling percentage for the document item image.
- Maximum scaling percentage for the document item image.
- Pointer to the dialog box's parent or owner.
Derive your common OLE Object Properties dialog class from COlePropertiesDialog in order to implement scaling for your document items. Any dialog boxes implemented by an instance of this class will not support scaling of the document item.
By default, the common OLE Object Properties dialog box has three default pages:
This page contains system information for the file represented by the selected document item. From this page, the user can convert the selected item to another type.
This page contains options for displaying the item, changing the icon, and changing the scaling of the image.
This page contains options for changing the location of the linked item and updating the linked item. From this page, the user can break the link of the selected item.
To add pages beyond those provided by default, modify the m_psh member variable before exiting the constructor of your COlePropertiesDialog-derived class. This is an advanced implementation of the COlePropertiesDialog constructor.