Showing "Passord" Text image
-
In my system I have installed windows Vista os. When I entered into Vista, In the Login dialog, User Name and Password textboxes are there. When the Password text box is empty, it is showing "Password" text image. When we entered some character, that Password image had gone and the text which entered is dispalying as *. Here my question is when the Password fields is empty it showing the "Password" text image, whethere it is image or text, how do i get this feature in VC++ 6.0. Awaiting for your reply.
-
In my system I have installed windows Vista os. When I entered into Vista, In the Login dialog, User Name and Password textboxes are there. When the Password text box is empty, it is showing "Password" text image. When we entered some character, that Password image had gone and the text which entered is dispalying as *. Here my question is when the Password fields is empty it showing the "Password" text image, whethere it is image or text, how do i get this feature in VC++ 6.0. Awaiting for your reply.
CEdit::[SetCueBanner](http://msdn.microsoft.com/en-us/library/kb01s86y\(vs.80\).aspx)[[^](http://msdn.microsoft.com/en-us/library/kb01s86y\(vs.80\).aspx "New Window")]
Sets the text that is displayed as the text cue, or tip, in an edit control when the control is empty and does not have focus. -
In my system I have installed windows Vista os. When I entered into Vista, In the Login dialog, User Name and Password textboxes are there. When the Password text box is empty, it is showing "Password" text image. When we entered some character, that Password image had gone and the text which entered is dispalying as *. Here my question is when the Password fields is empty it showing the "Password" text image, whethere it is image or text, how do i get this feature in VC++ 6.0. Awaiting for your reply.
gopalraja wrote:
how do i get this feature in VC++ 6.0
Madhu's answer is correct for VC2003 and on. For VC6, you need to do the following:
- Download and install a version of the Windows SDK that is compatible with VC6 AND has WIndows XP features[^]
- Use the
Edit_SetCueBannerText
[^] macro (which you'll get by #including commctrl.h) to set the prompt text in the edit box. Note that the text you pass as the macro's second argument is a wide-string, something likeL"Password"
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
CEdit::[SetCueBanner](http://msdn.microsoft.com/en-us/library/kb01s86y\(vs.80\).aspx)[[^](http://msdn.microsoft.com/en-us/library/kb01s86y\(vs.80\).aspx "New Window")]
Sets the text that is displayed as the text cue, or tip, in an edit control when the control is empty and does not have focus.