Article View: be.comp.programming
Article #8150Re: c++/win API - background/richedit
From: Luc Kumps
Date: Sun, 07 Jul 2002 07:22
Date: Sun, 07 Jul 2002 07:22
23 lines
1816 bytes
1816 bytes
"Capt Lob" <capt@lob.com> wrote in message news:Xns9243E7724CF92capt@195.130.132.65... > Ik probeer de achtergrond kleur van een richedit zwart te krijgen, ik doe > het volgende: > > COLORREF Color = 0x00FFFFFF; //zwart > hwndPub = CreateWindowEx(0, "RICHEDIT", NULL, > WS_VISIBLE | WS_CHILD | WS_TABSTOP | ES_AUTOHSCROLL, > 220, 565, 300, 20, hwndmain, (HMENU)0, GetModuleHandle(NULL), NULL); > > SendMessage( hwndPub, EM_SETBKGNDCOLOR, 0, Color ); > > Eerst is de achtergrond wel zwart, maar vanaf ik iets erin type word die > terug wit, wat doe ik verkeert? Ik heb het erg moeilijk om te geloven dat de achtergrond ooit zwart zou worden met deze code, want jij gebruikt de kleurcode voor WIT! Voor zwart gebruik je beter COLORREF Color = 0; Luc K
Technical Details
Message-ID:
<I_RV8.22259$ix.3228@afrodite.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!nntp.cs.ubc.ca!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mailReferences:
<Xns9243E7724CF92capt@195.130.132.65>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,4a8ff47c7b3bb093 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2002-07-07 00:23:56 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!nntp.cs.ubc.ca!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail From: "Luc Kumps" <NOkumpsSPAM@pandora.be> Newsgroups: be.comp.programming References: <Xns9243E7724CF92capt@195.130.132.65> Subject: Re: c++/win API - background/richedit Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <I_RV8.22259$ix.3228@afrodite.telenet-ops.be> Date: Sun, 07 Jul 2002 07:22:16 GMT NNTP-Posting-Host: 213.118.66.46 X-Complaints-To: abuse@telenet.be X-Trace: afrodite.telenet-ops.be 1026026536 213.118.66.46 (Sun, 07 Jul 2002 09:22:16 MET DST) NNTP-Posting-Date: Sun, 07 Jul 2002 09:22:16 MET DST Organization: Telenet Internet