virtual BOOL OnApplyScale( COleClientItem* pItem, int nCurrentScale, BOOL bRelativeToOrig );
Return Value
Nonzero if handled; otherwise 0.
Parameters
pItem
Pointer to the document item whose properties are being accessed.
nCurrentScale
Numerical value of the dialog scale.
bRelativeToOrig
Indicates whether scaling applies to the original size of the document item.
Remarks
Called by the framework when the scaling value has changed and either OK or Apply was selected. The default implementation does nothing. You must override this function to enable the scaling controls.
Note Before the common OLE Object Properties dialog box is displayed, the framework calls this function with a NULL for pItem and a – 1 for nCurrentScale. This is done to determine if the scaling controls should be enabled.
COlePropertiesDialog Overview | Class Members | Hierarchy Chart
See Also COlePropertiesDialog::DoModal