Click here to Skip to main content
16,019,976 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi , Experts

How can we change the Text Color Of Static Area , Is it Possible with DefWindowProc Or it is a impossible issue

What I have tried:

i cannot figure out what to do and what i make write in WM_CTLCOLORSTATIC
Posted
Updated 10-Feb-22 10:17am

1 solution

This is not possible because DefWindowProc will reset these changes and selects the default system colors for the static control to the device context each time. Reference for more information of WM_CTLCOLORSTATIC:
WM_CTLCOLORSTATIC message (Winuser.h) - Win32 apps | Microsoft Docs[^]
 
Share this answer
 
Comments
[no name] 11-Feb-22 4:51am    
tnx , what about DefSubclassproc?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900