首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

SWT/Jface 获取OleClientSite中progId的例证

2012-11-05 
SWT/Jface 获取OleClientSite中progId的例子Shell shell new Shell()shell.setSize(1000, 800)Composi

SWT/Jface 获取OleClientSite中progId的例子
Shell shell = new Shell();
shell.setSize(1000, 800);
Composite c = new Composite(shell, SWT.NULL);
c.setLayout(new FillLayout(org.eclipse.swt.SWT.VERTICAL));
c.setSize(800, 700);
OleFrame oleFrame = new OleFrame(c, SWT.NONE);
File file=new File("a.pdf");
OleClientSite clientSite = new OleClientSite(oleFrame, SWT.BORDER, file);
clientSite.doVerb(OLE.OLEIVERB_SHOW);
System.out.println(clientSite.getProgramID());

热点排行