|
|
От: |
NSP
|
|
| Дата: | 14.09.06 18:11 | ||
| Оценка: | |||
procedure TForm1.ButtonClick(Sender: TObject);
begin
if SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) or WS_EX_LAYERED) = 0 then
ShowMessage(SysErrorMessage(GetLastError));
if not SetLayeredWindowAttributes(Handle, ColorToRGB(clWhite), 255, 1) then
ShowMessage(SysErrorMessage(GetLastError));
end;