🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools.owl
Article #63

Changing the color of a pushbutton in OWL 5.0.

#63
From: Martin Truchon
Date: Wed, 18 Feb 1998 00:00
16 lines
1218 bytes
How do you change the color of a pushbutton?
I want to have a red pushbutton.

It used to work well in OWL 2.5 using the function
EvCtlColor(HDC hDC, HWND hWndChild, uint ctlType)
in which I changed the color of the device context hDC with the function

SetBkColor (hDC, RGB(255, 0, 0));

But this doesn't work anymore in OWL 5.0.  The button remains gray.

If you have any idea, please write to
epflaum@hatch.ca

Thank you very much.
Technical Details
Message-ID: <34EA4B75.F7A9AA6C@videotron.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 108ebe,aa51c0bb15ad3362,start
X-Google-Attributes: gid108ebe,public
X-Google-Thread: 150956,aa51c0bb15ad3362,start
X-Google-Attributes: gid150956,public
X-Google-Thread: fe201,aa51c0bb15ad3362,start
X-Google-Attributes: gidfe201,public
From: Martin Truchon <martin.truchon@videotron.ca>
Subject: Changing the color of a pushbutton in OWL 5.0.
Date: 1998/02/18
Message-ID: <34EA4B75.F7A9AA6C@videotron.ca>
X-Deja-AN: 326069995
Content-Transfer-Encoding: 7bit
To: epflaum@hatch.ca
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
NNTP-Posting-Date: Tue, 17 Feb 1998 21:45:40 EST
Newsgroups: comp.os.ms-windows.programmer.tools.owl,borland.public.cpp.owl,borland.public.ccp.winapi