![]() |
Re: STATIC Control transparent?
Ich merk schon, das wird nix ^^
Dann muss ich eben wissen, was man bei TWndClassEx beim Brush angeben muss, um die Windows Standardfarbe für 3D Objekte zu bekommen. COLOR_BTNFACE is dunkelblau und COLOR_APPWORKSPACE is braun. Normalerweise sind meine Fenster Hell Grau und die MDI BGs sind dunkel Grau. Was muss ich da denn angeben :gruebel: //Edit: Grad rausgefunden: COLOR_BTNSHADOW ergibt bei mir die Standardfarbe für Fenster. Kann das sein? |
Re: STATIC Control transparent?
Häh? Was soll der Quark denn hier im Thema :lol:
Das Ding ist doch schon "transparent", es sei denn du änderst die Farbe. In diesem Fall nimmste WM_CTLCOLORSTATIC ;) ... Wenn es wieder eines Beispiels bedarf, gib mal kurz deinen aktuellen Source. Zitat:
![]() |
Re: STATIC Control transparent?
Zitat:
Zitat:
Unter Wiondows 2000 müsste es so aussehen:
Delphi-Quellcode:
Das ergibt das normale Fenstergrau von Windows.
wc: TWndClassEx = (
cbSize: SizeOf(TWndClassEx); Style: CS_HREDRAW or CS_VREDRAW; lpfnWndProc: @WndProc; cbClsExtra: 0; cbWndExtra: 0; hbrBackground: COLOR_APPWORKSPACE; lpszMenuName: nil; lpszClassName: ClassName; hIconSm: 0; ); |
Re: STATIC Control transparent?
Zitat:
Zitat:
|
Re: STATIC Control transparent?
Zitat:
Zitat:
|
Re: STATIC Control transparent?
Also bei mir (Windows 2000) macht das keinen Unterschied. :gruebel:
|
Re: STATIC Control transparent?
Zitat:
|
Re: STATIC Control transparent?
Hi,
hmm, schon 'n bissel alt das Thema, hab aber noch einen Lösungsvorschlag, der eigentlich immer funktionieren sollte.
Delphi-Quellcode:
Das ganze kann man dann noch via GetCDlgtrlID(lParam) nur auf bestimmte Statics anwenden.
WM_CTLCOLORSTATIC:
begin SetBkMode(wParam, TRANSPARENT); SelectObject(wParam, GetStockObject(NULL_BRUSH)); end; Gruß D4rk4ng3l Stefan |
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:37 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