Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Showing "Passord" Text image

Showing "Passord" Text image

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gopalraja
    wrote on last edited by
    #1

    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.

    M S 2 Replies Last reply
    0
    • G gopalraja

      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.

      M Offline
      M Offline
      Madhu Nair 0
      wrote on last edited by
      #2

      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.

      G 1 Reply Last reply
      0
      • G gopalraja

        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.

        S Offline
        S Offline
        Stuart Dootson
        wrote on last edited by
        #3

        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:

        1. Download and install a version of the Windows SDK that is compatible with VC6 AND has WIndows XP features[^]
        2. 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 like L"Password"

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        1 Reply Last reply
        0
        • M Madhu Nair 0

          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.

          G Offline
          G Offline
          gopalraja
          wrote on last edited by
          #4

          Thanks Madhu.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups