AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Transparente Form

Ein Thema von Jelly · begonnen am 21. Jul 2005 · letzter Beitrag vom 21. Jul 2005
Antwort Antwort
barf00s
(Gast)

n/a Beiträge
 
#1

Re: Transparente Form

  Alt 21. Jul 2005, 15:27
Delphi-Quellcode:
var
  iStyleEx: cardinal;

begin
  iStyleEx := GetWindowLong(Handle, GWL_EXSTYLE);
  iStyleEx := iStyleEx or WS_EX_LAYERED;
  SetWindowLong(Handle, GWL_EXSTYLE, iStyleEx);
end;
heißen, sry

und

SetLayeredWindowAttributes(Handle, clLime, 0, LWA_COLORKEY);

<msdn>
Delphi-Quellcode:
function SetLayeredWindowAttributes(
  // Handle to the layered window.
  Wnd: hwnd;
  // Pointer to a COLORREF value that specifies the transparency
  // color key to be used when composing the layered window
  crKey: ColorRef;
  // Alpha value used to describe the opacity of the layered window
  Alpha: Byte;
  // Specifies an action to take
  // LWA_COLORKEY or LWA_ALPHA
  // This parameter can be one or more of the following values:
  dwFlags: DWORD): Boolean;
  stdcall; external 'user32.dll';
</msdn>

[edit]blubb, thx freak[/edit]
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:45 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz