Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to implement hint edit by VC6 just like CEdit::SetCurText() in later version?
Thanks.
Posted
Updated 5-Jun-10 23:11pm
v2
Comments
Richard MacCutchan 6-Jun-10 13:12pm    
I cannot find any reference to SetCurText, please try again to explain what problem you wish to solve.

If you mean a light gray text saying what a field is used for when nothing is entered, you need to subclass the edit control and respond to WM_PAINT. Check if your control is empty and if so write a message in the client area using a light color.
 
Share this answer
 
 
Share this answer
 

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