Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Placeholder text in Edit control
#2
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Unavailable on Win2000.
Clips first character on XP. Add space to avoid it.
Does not work with multiline Edit controls.

str s=" Search..."
SendMessage hwndEdit EM_SETCUEBANNER 0 @s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)