The MASM Forum

General => The Campus => Topic started by: Ar0n on January 19, 2015, 01:44:25 PM

Title: How to change text and background color?
Post by: Ar0n on January 19, 2015, 01:44:25 PM
Hello MASM32! I would like to know which is the correct way to change the text and background color of a richedit control, I'm using "RICHEDIT50W" class. any help many thanks guys.
Title: Re: How to change text and background color?
Post by: dedndave on January 19, 2015, 02:37:33 PM
there was a thread on that subject a few weeks ago   :t
Title: Re: How to change text and background color?
Post by: Ar0n on January 19, 2015, 02:48:39 PM
ok can you post it please, I did not find :P
Title: Re: How to change text and background color?
Post by: dedndave on January 19, 2015, 03:33:47 PM
i think this is the one...

http://masm32.com/board/index.php?topic=3106.0 (http://masm32.com/board/index.php?topic=3106.0)
Title: Re: How to change text and background color?
Post by: jj2007 on January 19, 2015, 05:43:05 PM
EM_SETBKGNDCOLOR if you want to change the control's general background,
EM_SETCHARFORMAT for individual paras (CFM_BACKCOLOR, CFM_COLOR)

The source for TinyIDE (http://masm32.com/board/index.php?topic=103.0) contains usage examples.