Article ID: 126563
Article Last Modified on 11/21/2006
The object should compare its width and height with those provided by its container (conveyed through lprcPosRect). If the comparison does not result in a match, the container is applying either scaling or zooming to the object. The object must then decide whether it should continue the in-place editing in the scale/zoom mode or deactivate."
BOOL CMyClientItem::MySetObjectRects(CRect &rect)
{
ASSERT_VALID(this);
ASSERT(m_lpObject != NULL);
ASSERT(IsInPlaceActive());
// get the size of this new rectangle
CSize size = rect.Size();
// now convert this size to HIMETRIC units
size.cx = XformHeightInPixelsToHimetric(NULL, size.cx);
size.cy = XformWidthInPixelsToHimetric(NULL, size.cy);
// use this size to set the extent of the object
SetExtent(size);
// finally set the new size for the in-place window
return SetItemRects(rect, rect);
}
Additional query words: 1.00 1.50 2.00 2.10 2.50 2.51 3.00 3.10 scale zoom size ole
Keywords: kbnoupdate kbprb KB126563