🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #1761

Re: changing background color at the API level !!!!!!!!!!!!

#1761
From: Domi
Date: Wed, 08 Dec 2004 14:41
27 lines
1676 bytes
>> Which window, which api?
>>
>> return (ENOCRYSTALBALL);
>>
>> - Philip


Thank you for your answer.  I finally decide to code the following :

/*

DeleteObject ((HGDIOBJ) SetClassLong ( hwnd, GCL_HBRBACKGROUND,
                              (LONG) CreateSolidBrush (
                                     RGB( 0,0,127 // for a blue background
                                      )))) ;

*/

I feel it very useful since I don't have to worry for painting  the
background, the OS will do it alone :-)

Is that code rightful  to your mind ?



Dominique 
Technical Details
Message-ID: <41b71265$0$9311$ba620e4c@news.skynet.be>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.wxs.nl!newsfeed.multikabel.nl!skynet.be!newspost001!tjb!not-for-mail
References: <41b629a4$0$25054$ba620e4c@news.skynet.be> <41b69a6c$0$78738$e4fe514c@news.xs4all.nl> <41b6a9c4$0$25058$ba620e4c@news.skynet.be>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,75fbcd47d6df2daa
X-Google-Attributes: gidfcea4,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.wxs.nl!newsfeed.multikabel.nl!skynet.be!newspost001!tjb!not-for-mail
From: "Domi" <moreau@xdreze.org>
Newsgroups: be.comp.programming
References: <41b629a4$0$25054$ba620e4c@news.skynet.be> <41b69a6c$0$78738$e4fe514c@news.xs4all.nl> <41b6a9c4$0$25058$ba620e4c@news.skynet.be>
Subject: Re: changing background color at the API level !!!!!!!!!!!!
Date: Wed, 8 Dec 2004 15:41:18 +0100
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
Lines: 29
Message-ID: <41b71265$0$9311$ba620e4c@news.skynet.be>
Organization: -= Belgacom Usenet Service =-
NNTP-Posting-Host: 24b3ed1a.news.skynet.be
X-Trace: 1102516837 news.skynet.be 9311 80.200.158.213:2861
X-Complaints-To: usenet-abuse@skynet.be