flat assembler
Message board for the users of flat assembler.

Index > Windows > Changing static ctrl color

Author
Thread Post new topic Reply to topic
ly47



Joined: 24 Sep 2010
Posts: 27
ly47
Hi
How to change static ctrl's color,by command ?
(any color)
attached asm file.
Thanks
ly


Description:
Download
Filename: COLOR_02.ASM
Filesize: 2.82 KB
Downloaded: 57 Time(s)

Post 17 Jan 2013, 10:05
View user's profile Send private message Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1288
Location: Paradise Falls
Picnic
Hi,

Search the board for WM_CTLCOLORSTATIC message.
Post 17 Jan 2013, 10:34
View user's profile Send private message Reply with quote
ly47



Joined: 24 Sep 2010
Posts: 27
ly47
Hi Picnic
Thanks.
Problem half solved...
I can create a static ctrl with which color I want,
BUT
How to change it to another color by pressing a btn ?
Thanks again
ly
Post 17 Jan 2013, 11:33
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
ly47,

Force static control to be redrawn (with proper color). You may just invalidate corresponding rectangle.
Post 17 Jan 2013, 15:24
View user's profile Send private message Reply with quote
ly47



Joined: 24 Sep 2010
Posts: 27
ly47
Hi baldr
Thanks.
Have you any demo ?
Thanks again
ly
Post 17 Jan 2013, 15:52
View user's profile Send private message Reply with quote
ly47



Joined: 24 Sep 2010
Posts: 27
ly47
Hi
Problem solved.
Many thanks to 'huntingspace' at WinAsm forum.
ly


Description:
Download
Filename: COLOR_02--test--5.zip
Filesize: 42.43 KB
Downloaded: 47 Time(s)

Post 19 Jan 2013, 16:57
View user's profile Send private message Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
ly47,

It's much better to learn how to fish than to fish and provide only a sample. Wink
Post 19 Jan 2013, 19:22
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.