flat assembler
Message board for the users of flat assembler.

Index > Windows > a question about use of SetBkColor function from gdi32

Author
Thread Post new topic Reply to topic
ur-go



Joined: 13 Jul 2003
Posts: 1
ur-go
hi
i want to paint an entire window in black. to do that i have used
GetWindowDC and SetBkColor responding to a WM_PAINT message
But i doesnt work..some has a clue how to do that?

all the best
Post 13 Jul 2003, 22:05
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
Use FillRect with a black brush (GetStockObject(BLACK_BRUSH)). If its general Win32 programming question, I think it would be better if you asked at http://board.win32asmcommunity.net/ forum, you would surely get faster response there.

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 14 Jul 2003, 02:04
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
BiDark



Joined: 22 Jun 2003
Posts: 109
Location: .th
BiDark
Fill the [wc.hbrBackground] member with GetStockObject(BLACK_BRUSH).
Post 14 Jul 2003, 04:18
View user's profile Send private message Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
BiDark wrote:
Fill the [wc.hbrBackground] member with GetStockObject(BLACK_BRUSH).


That's just client area...

_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 15 Jul 2003, 23:58
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
BiDark



Joined: 22 Jun 2003
Posts: 109
Location: .th
BiDark
Oh O!! Surprised
Post 16 Jul 2003, 01:44
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.