To SadPacific
1、OleContainer1.InsertObjectDialog可以打开一插入对话框,可以插入OLE文档;返回True时表示插入成功;
2、OleContainer1.LoadFromFile可以直接载入磁盘文件。
3、如果想合并菜单的话,Set the AllowInPlace property to True;然后正确设置主菜单的GroupIndex属性(一般来说,File菜单为1,Edit菜单为2)。否则Set to False;
To huiwsey: It's so easy:
1、Place A TOleContainer control to your form;
2、Set the AllowInPlace property to False;
3、Load Ole Object from TOleContainer control;
4、The menu has no change.