Thema: Delphi TButton Farbe

Einzelnen Beitrag anzeigen

Gast
(Gast)

n/a Beiträge
 
#6
  Alt 30. Jun 2003, 23:27
WM_OWNERDRAW abfangen. Ein Beispiel wäre der ProzessKill-Button in EDA.

WM_PAINT macht zuviel Arbeit ... und ohne OwnerDraw gehts nicht - PSDK:
Zitat:
By default, the DefWindowProc function selects the default system colors for the button. Buttons with the BS_PUSHBUTTON, BS_DEFPUSHBUTTON, or BS_PUSHLIKE styles do not use the returned brush. Buttons with these styles are always drawn with the default system colors. Drawing push buttons requires several different brushes-face, highlight and shadow-but the WM_CTLCOLORBTN message allows only one brush to be returned. To provide a custom appearance for push buttons, use an owner-drawn button.
  Mit Zitat antworten Zitat