COlePropertiesDialog::OnApplyScale
Called by the framework when the scaling value has changed and either OK or Apply was selected.
virtual BOOL OnApplyScale(
COleClientItem* pItem,
int nCurrentScale,
BOOL bRelativeToOrig
);
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.
Return Value
Nonzero if handled; otherwise 0.
Remarks
The default implementation does nothing. You must override this function to enable the scaling controls.
注意
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.
Requirements
Header: afxodlgs.h