|
-
May 11th, 2003, 10:07 PM
#1
How can i change text background of STATIC?
Hi all,
Im trying to change text color and text background of static window, but for now im stuck. Im new in api. I changed static's background by catching WM_CTLCOLORSTATIC message and returning color i want, but text background still remains grey. Any idea how to change it? Thanks in advance.
-
May 12th, 2003, 01:24 AM
#2
You have to call SetBkColor.
Code:
SetBkColor((HDC)wParam, bkcolor);
Hope it will help you
-
May 12th, 2003, 01:51 AM
#3
Thanks for reply, SetBkColor() works fine. And i found SetTextColor() (I like this naming) so i can change color of my text aswell.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|