L
LoveKilly
Unregistered / Unconfirmed
GUEST, unregistred user!
窗体上放一个SpeedButton,重载窗体的WM_PAINT消息,输入代码如下:
procedure TForm1.WMPaint(var Message: TWMPaint);
var
ps: TPaintStruct;
begin
BeginPaint(Handle, ps);
// do something
EndPaint(Handle, ps);
inherited;
end;
这时SpeedButton不见了,不加BeginPaint就不会出现这种情况了。
procedure TForm1.WMPaint(var Message: TWMPaint);
var
ps: TPaintStruct;
begin
BeginPaint(Handle, ps);
// do something
EndPaint(Handle, ps);
inherited;
end;
这时SpeedButton不见了,不加BeginPaint就不会出现这种情况了。