问题是这样, 创建了一个 sdi 程序, 支持 container , 然后, 在其中插入一个 excel 表格,
问题出来了:这个 excel 嵌入对象 总是充满整个 client 区, 查了一些资料, 好像是修改好像是在
ongetitempos 和 ongetcliprect 种获得 剪切区, 我这样修改了
void COleDocTestCntrItem::OnGetItemPosition(CRect& rPosition)
{
// TODO: Add your specialized code here and/or call the base class
rPosition = CRect(CPoint(0, 0), CSize(200, 200));
//COleDocObjectItem::OnGetItemPosition(rPosition);
}void COleDocTestCntrItem::OnGetClipRect(CRect& rClipRect)
{
// TODO: Add your specialized code here and/or call the base class rClipRect = CRect(1, 1, 600, 600);
//COleDocObjectItem::OnGetClipRect(rClipRect);
}但是没有效果, 是不是有问题, 还是不这样修改, 请各位指点一下了, 谢谢
问题出来了:这个 excel 嵌入对象 总是充满整个 client 区, 查了一些资料, 好像是修改好像是在
ongetitempos 和 ongetcliprect 种获得 剪切区, 我这样修改了
void COleDocTestCntrItem::OnGetItemPosition(CRect& rPosition)
{
// TODO: Add your specialized code here and/or call the base class
rPosition = CRect(CPoint(0, 0), CSize(200, 200));
//COleDocObjectItem::OnGetItemPosition(rPosition);
}void COleDocTestCntrItem::OnGetClipRect(CRect& rClipRect)
{
// TODO: Add your specialized code here and/or call the base class rClipRect = CRect(1, 1, 600, 600);
//COleDocObjectItem::OnGetClipRect(rClipRect);
}但是没有效果, 是不是有问题, 还是不这样修改, 请各位指点一下了, 谢谢
解决方案 »
- 求高手,这段代码是不是有错
- 用vc2005学MFC应该看什么书好?
- 一个简单但高手不一定知道的问题..................
- 如何在一个CListView中显示多列image--outlook风格列表
- 开发汉字输入法的问题
- 现在需要做一个ActiveX控件将Word嵌入到网页,谁做过类似的请提供下思路.
- 200分的问题,有字符集处理经验的兄弟请进
- 哪位大哥有通过计算机和手机相连方式发送短信的代码!!2000分相送!!
- 在一个定时器里显示MessageBox,每来一个Timer消息就会出一个对话框,为什么?
- csdn中只能显示近一百个记录,请问如何查找过去的记录?
- 帮忙看看,窗口怎么出不来
- VC++6.0正常使用TinyXML一段时间后突然出现奇怪错误?!
不明白你的问题!