Einzelnen Beitrag anzeigen

Olli
(Gast)

n/a Beiträge
 
#4

Re: [nonVCL] - Hintergrundfarbe ist nicht füllend

  Alt 17. Dez 2006, 04:43
Schonmal die Dokumentation zu MSDN-Library durchsuchenWM_CTLCOLORSTATIC angeschaut? Im Großen und Ganzen wiedermal der Tip: RTFM - Read The ... Friendly Manual

Zitat:
If an application processes this message, the return value is a handle to a brush that the system uses to paint the background of the static control.
Es gibt soviele Beispiele im großen weiten WWW, warum nicht einfach mal eins angucken? Bsp: http://assarbad.net/stuff/portscan.zip

Ergo:

Result := GetSysColorBrush(COLOR_3DFACE); Noch'n kleiner Tip: anders als in C/C++ ist RGB in Delphi eine Funktion. Daher frißt das Laufzeit. In C/C++ erzeugt der Präprozessor aus dem Makro nur eine Konstante.
  Mit Zitat antworten Zitat