1.delphiå¦ä½ç¨CreateWindowExå建ä¸ä¸ªçªä½ï¼
2.在DELPHI设置EXCEL工作薄的源码名称
delphiå¦ä½ç¨CreateWindowExå建ä¸ä¸ªçªä½ï¼
è¿ä¸ªé½æ²¡äººæ¥çä¹ï¼é£ææ¥å¤§æ¦è¯´è¯´å§ã
é¦å ä½ å¾å åä¸ä¸ªæ³¨åçªå£çå½æ°ï¼
function tmainform.RegClass:Boolean;
var
WndClass:TWndClass;
begin
//è¿éé¢æ¯ä½ 注åçWndClassçªä½çä¿¡æ¯ï¼ä»£ç 麻ç¦æå°±ä¸æäºã
end;
ç¶åæ¯å建çªå£çè¿ç¨ï¼
procedure tmainform.CreateForm;
var
Wnd:HWND;
begin
RegClass;
Wnd:=CreateWindow('MyFormClass', //注åçªå£ç±»å
'çªå£æ é¢', //çªå£æ é¢æ
WS_OVERLAPPEDWINDOW, //çªå£é£æ ¼
CW_USEDEFAULT, //é»è®¤left
CW_USEDEFAULT, //é»è®¤top
CW_USEDEFAULT, //é»è®¤width
CW_USEDEFAULT, //é»è®¤height
SELF.HANDLE, //ç¶çªå£å¥æ
MainMenu1.Handle, //çªå£èå
HInstance, //ç¨åºå®ä¾
nil //çªä½éå åæ°
);
IF Wnd<>0 THEN
BEGIN
ShowWindow(Wnd,SW_SHOWNORMAL); //SHOWçªå£
UpdateWindow(Wnd); //å·æ°çªå£
END;
end;
å®äºï¼ä»¥ä¸æ¯ä»¥ CreateWindow ä¸ºä¾ å建çªå£ï¼ä» ä½åèã
PSï¼æ²¡æåçåçè¿è¦æNå¤ä»£ç ï¼æªä¸å¾æ²¡äººæ¥çã
在DELPHI设置EXCEL工作薄的名称
首先打开EXCEL文件,改名保存后,源码代刷源码网删除原文件就达到目地了。源码凤凰指标源码
源码:
procedure TForm1.Button1Click(Sender: TObject);
const
NewName = 'NewName.xls';
var
fnm,源码sftp 源码解读pth: String;
ExlApp: TExcelApplication;
ExlWb: TExcelWorkbook;
begin
if OpenDialog1.Execute then begin
fnm := OpenDialog1.FileName;
pth := ExtractFilePath(fnm);
ExlApp := TExcelApplication.Create(Forms.Application);
ExlApp.Connect;
ExlApp.Visible[0] := False;
ExlWb := TExcelWorkbook.Create(Forms.Application);
ExlWb.ConnectTo(
ExlApp.Workbooks.Open(fnm,
EmptyParam,EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,EmptyParam,EmptyParam,
EmptyParam,EmptyParam,0));
ExlApp.Application.DisplayAlerts[0] := False;
ExlWb.SaveCopyAs(pth + NewName);
ExlWb.Close(EmptyParam, fnm, EmptyParam, 0);
ExlApp.Quit;
//必要时,可以删除原来的源码eureka指标源码文件
//DeleteFile(fnm);
end;
end;
2024-11-21 01:391521人浏览
2024-11-21 01:19449人浏览
2024-11-21 00:57828人浏览
2024-11-21 00:50464人浏览
2024-11-20 23:351341人浏览
2024-11-20 23:212439人浏览
1.Ԥ?? Դ??2.CMCT币是什么?为什么预售期间就在国外广受关注3.天津网校系统源码4.微擎小程序 狮子鱼社区团购 v2.0.0后台模块+前端小程序源码 大版本更新修复bug5.SHOP++ V