6 Star 10 Fork 6

itlabers / delphi4wechat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.pas 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
itlabers 提交于 2016-06-06 20:45 . first commit
unit main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls,StdCtrls, IdBaseComponent, IdComponent, IdIOHandler,
IdIOHandlerSocket, IdIOHandlerStack, IdSSL, IdSSLOpenSSL,shdocvw, OleCtrls,backend,
ComCtrls;
type
TForm1 = class(TForm)
Image1: TImage;
Button1: TButton;
Memo1: TMemo;
procedure Button1Click(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
procedure SetComCtrlStyle(WinCtrl: TWinControl; Value: Integer; UseStyle: Boolean);
const TVS_CHECKBOXES = $00000100;
var
Form1: TForm1;
var waitforLogin:LoginThread;
implementation
uses Jpeg,webapp,strutils,superobject,dateUtils;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
waitforLogin:=LoginThread.create(true);
waitforLogin.start;
end;
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
if waitforLogin <> nil then
begin
waitforLogin.Terminate ;
waitforLogin:=nil;
end;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
//SetComCtrlStyle(TreeView1, TVS_CHECKBOXES, True);
end;
procedure SetComCtrlStyle(WinCtrl: TWinControl; Value: Integer; UseStyle: Boolean);
var
Style: Integer;
begin
if WinCtrl.HandleAllocated then
begin
Style := GetWindowLong(WinCtrl.Handle, GWL_STYLE);
if not UseStyle then
Style := Style and not Value
else Style := Style or Value;
SetWindowLong(WinCtrl.Handle, GWL_STYLE, Style);
end;
end;
end.
Delphi
1
https://gitee.com/spirit_demon/delphi4wechat.git
git@gitee.com:spirit_demon/delphi4wechat.git
spirit_demon
delphi4wechat
delphi4wechat
master

搜索帮助