线程不停向窗口发消息导致手动操作窗口时一卡一卡的,
有没有什么解决办法,请高手指点一下
有没有什么解决办法,请高手指点一下
解决方案 »
- Delphi用ExcelApp操作03Excel表格,如果Excel是07的不兼容
- delphi 动太远程连接数据库,好何保存设置.
- 提示出错要怎么解决求助........
- 急救-关于使用ADOQuery出错-在线等待!!!
- 怎么写个activex控件,在客户端把指定文件名的文件post到服务器上,当然同时还需要带入别的参数
- dbgrid中如何设置行标题
- 简单问题求助,希望大家给个建议
- 一个组件在component palette里面都能看到,可为什么在组件板上看不到
- 高手请赐教??
- 无知的问题:好的多层的客户端程序一般是什么样儿的?
- 跪求淘宝 API 上传图片的问题
- 如何让 TDateTimePicker 组件运行后时间显示为空?
procedure Update(var msg:TMSG);message WM_UPDATE;function MyThreadFun(handle: HWND): Integer; stdcall;
var
query_result: IMySQLQuery;
i,j,n: integer;
begin
while query_result.FetchRow do
begin
...
Sendmessage(handle,WM_MINE,0,0);
Sendmessage(handle,WM_UPDATE,0,0);
end;
end;procedure TForm1.Mine(var msg: TMSG);
var
i,v:integer;
begin
if dl > 0 then
begin
Application.ProcessMessages;
i:=x+1;
SimpleGraph1.BeginUpdate;
while dl > 0 do
begin
//bschnumd:=0;
SimpleGraph1.FindNextObject(i, true, true ,true).Delete;
dl:=dl-1;
end;
linesnum:=0;
SimpleGraph1.EndUpdate;
end;
end;
procedure TForm1.Update(var msg:TMSG);
var
i,z:integer;
rect:TRect;
begin
SimpleGraph1.CommandMode := cmInsertLink;
if linesnum > 0 then
begin
Application.ProcessMessages;
SimpleGraph1.BeginUpdate;
z:=x;
for i:=1 to linesnum do
begin
z:=z+1;
lines[i].id:=z;
SimpleGraph1.InsertLink(SimpleGraph1.FindNextObject(lines[i].ob1, true, true ,true), SimpleGraph1.FindNextObject(lines[i].ob2, true, true ,true)).TextPosition:=lines[i].ob1;
z:=z+1;
lines[i].id2:=z;
SimpleGraph1.InsertLink(SimpleGraph1.FindNextObject(lines[i].ob2, true, true ,true), SimpleGraph1.FindNextObject(lines[i].ob3, true, true ,true)).TextPosition:=lines[i].ob2;
SimpleGraph1.FindNextObject(lines[i].id, true, true ,true).Text:=lines[i].name+lines[i].others;
SimpleGraph1.FindNextObject(lines[i].id2, true, true ,true).Text:=lines[i].name;
end;
dl:=z-x;
SimpleGraph1.EndUpdate;
end;
SimpleGraph1.CommandMode := cmEdit;
end;