S
Skelter
Hello,
I create an SDI application based on article
http://support.microsoft.com/kb/311546
"How to embed and automate an Excel worksheet by using MFC..". However, one
problem exist and I cant figure out the way how to solve it. When I change
item size to fit the view:
CExcelView::OnSize(UINT nType, int cx, int cy)
{
CRect rect (0, 0, cx, cy);
CECCntrItem* pActiveItem =
(CECCntrItem*)GetDocument->GetInPlaceActiveItem(this);
pActiveItem->SetItemRects(rect);
}
Size of excel cells changes too, proportionally.
Any way to fix this?
I create an SDI application based on article
http://support.microsoft.com/kb/311546
"How to embed and automate an Excel worksheet by using MFC..". However, one
problem exist and I cant figure out the way how to solve it. When I change
item size to fit the view:
CExcelView::OnSize(UINT nType, int cx, int cy)
{
CRect rect (0, 0, cx, cy);
CECCntrItem* pActiveItem =
(CECCntrItem*)GetDocument->GetInPlaceActiveItem(this);
pActiveItem->SetItemRects(rect);
}
Size of excel cells changes too, proportionally.
Any way to fix this?