Thread View: be.comp.programming
4 messages
4 total messages
Started by Domi
Tue, 07 Dec 2004 22:08
changing background color at the API level !!!!!!!!!!!!
Author: Domi
Date: Tue, 07 Dec 2004 22:08
Date: Tue, 07 Dec 2004 22:08
11 lines
1008 bytes
1008 bytes
Hi ! I wonder how to change the Window background color at the API level ( C programming ). Thank you beforehand for any of your advices :) Dominique moreau@xdreze.org
Re: changing background color at the API level !!!!!!!!!!!!
Author: Philip Paeps
Date: Wed, 08 Dec 2004 06:08
Date: Wed, 08 Dec 2004 06:08
15 lines
1538 bytes
1538 bytes
Domi <moreau@xdreze.org> wrote: > I wonder how to change the Window background color at the API level ( C > programming ). Which window, which api? return (ENOCRYSTALBALL); - Philip -- Philip Paeps Please don't email any replies philip@paeps.cx I follow the newsgroup. A short cut is the longest distance between two points.
Re: changing background color at the API level !!!!!!!!!!!!
Author: Domi
Date: Wed, 08 Dec 2004 07:14
Date: Wed, 08 Dec 2004 07:14
27 lines
1604 bytes
1604 bytes
Hi :) I mean Win32 API. (Running on Windows 98 or Win XP). Dominique "Philip Paeps" <philip+usenet@paeps.cx> a οΏ½crit dans le message de news: 41b69a6c$0$78738$e4fe514c@news.xs4all.nl... > Domi <moreau@xdreze.org> wrote: >> I wonder how to change the Window background color at the API level ( C >> programming ). > > Which window, which api? > > return (ENOCRYSTALBALL); > > - Philip > > -- > Philip Paeps Please don't email any replies > philip@paeps.cx I follow the newsgroup. > > A short cut is the longest distance between two points.
Re: changing background color at the API level !!!!!!!!!!!!
Author: Domi
Date: Wed, 08 Dec 2004 14:41
Date: Wed, 08 Dec 2004 14:41
27 lines
1676 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads