procedure TF_W.WMNCLBUTTONDOWN(var Msg: TMessage); begin M_Z:='D'; end;procedure TF_W.WMNCMOUSEMOVE(var Msg: TMessage); begin if M_Z='D' then F_W.AlphaBlendValue:=110; end;procedure TF_W.WMNCLBUTTONUP(var Msg: TMessage); begin if F_W.AlphaBlendValue=110 then begin F_W.AlphaBlendValue:=255; M_Z:='U'; end; end;
哈哈 找到更好的了:WM_EXITSIZEMOVE。 不过还是想知道为什么上面那样窗口就拖不动了?procedure TF_W.WMMOVE(var Msg: TMessage); begin F_W.AlphaBlendValue:=110; end;procedure TF_W.WMEXITSIZEMOVE(var Msg: TMessage); begin F_W.AlphaBlendValue:=255; end;
WM_NCLBUTTONDOWN、WM_NCMOUSEMOVE、WM_NCLBUTTONUP
begin
M_Z:='D';
end;procedure TF_W.WMNCMOUSEMOVE(var Msg: TMessage);
begin
if M_Z='D' then
F_W.AlphaBlendValue:=110;
end;procedure TF_W.WMNCLBUTTONUP(var Msg: TMessage);
begin
if F_W.AlphaBlendValue=110 then
begin
F_W.AlphaBlendValue:=255;
M_Z:='U';
end;
end;
不过还是想知道为什么上面那样窗口就拖不动了?procedure TF_W.WMMOVE(var Msg: TMessage);
begin
F_W.AlphaBlendValue:=110;
end;procedure TF_W.WMEXITSIZEMOVE(var Msg: TMessage);
begin
F_W.AlphaBlendValue:=255;
end;