X
xxxyyyuuu
Unregistered / Unconfirmed
GUEST, unregistred user!
我想在f1book中加入图片,就像他带的例子(object文件夹),也就是objcreatepictuer函数
怎么用,特别是hMF参数,望赐教!!!我写的代码:
TMetafile *pMetafile = new TMetafile;
TMetafileCanvas *pCanvas = new TMetafileCanvas(pMetafile, 0);
pCanvas->Brush->Color = clRed;
pCanvas->Pen->Color=clGreen;
pCanvas->Ellipse(0,0,100,100);
pCanvas->LineTo(50,50);
delete pCanvas;
//if (OpenDialog1->Execute())
//Image1->Picture->LoadFromFile(OpenDialog1->FileName);
Image1->Canvas->Draw(0,0,pMetafile);
OLE_HANDLE hmf=Image1->Picture->Metafile->Handle;
F1Book11->ObjCreatePicture(1, 7, 4, 2, hmf, 8, 12, 12);
另外:workbook之间能调用数据吗??(最好有例子)
怎么用,特别是hMF参数,望赐教!!!我写的代码:
TMetafile *pMetafile = new TMetafile;
TMetafileCanvas *pCanvas = new TMetafileCanvas(pMetafile, 0);
pCanvas->Brush->Color = clRed;
pCanvas->Pen->Color=clGreen;
pCanvas->Ellipse(0,0,100,100);
pCanvas->LineTo(50,50);
delete pCanvas;
//if (OpenDialog1->Execute())
//Image1->Picture->LoadFromFile(OpenDialog1->FileName);
Image1->Canvas->Draw(0,0,pMetafile);
OLE_HANDLE hmf=Image1->Picture->Metafile->Handle;
F1Book11->ObjCreatePicture(1, 7, 4, 2, hmf, 8, 12, 12);
另外:workbook之间能调用数据吗??(最好有例子)