CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Galway, Ireland
    Posts
    96

    CRichEditCtrl & ES_PASSWORD

    For whatever reason CRichEditCtrl is not hiding text when created with the ES_PASSWORD style. I am seeing the text unhidden. I am expecting "*******". Any help?

    Lounge One-Eleven Presents: Gong! v2.0 - you never knew you needed it until you lived without it

  2. #2
    Join Date
    Apr 1999
    Location
    Galway, Ireland
    Posts
    96

    Re: CRichEditCtrl & ES_PASSWORD

    I have continued to play with this and still haven't found the solution. I have attempted to use to no avail:
    m_pEdit->SendMessage(EM_SETPASSWORDCHAR , (WPARAM) (UINT) editPasswordChar);
    For whatever reason, the style will not set, I can still see the text of the password.

    One interesting side note is the above message only works with CRichEditCtrl v2.0 or greater. Even though I have riched20.dll installed could it still mean that the program is using v1.0? When I rename riched32.dll (v1.0) the program crashes.

    Lounge One-Eleven Presents: Gong! v2.0 - you never knew you needed it until you lived without it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured