Re: setpassword and xp styles?



"lallous" <lallous@xxxxxxxx> wrote in message
news:OoraL8o9FHA.3592@xxxxxxxxxxxxxxxxxxxxxxx
> Hello
>
> I have added manifest file and enabled xp styles in my application.
>
> Now, i have EDIT1 mapped to m_edt1 that have a password style.
>
> When the application runs, the password character shows as a nice
> graphical black dot.
>
> Now if i call: m_edt1.SetPasswordChar(0) in order to remove the password
> char.
> Then if I call setpasswordchar('*') the black dot char never returns...
>
> Any ideas how to swap between non password field to password field (with
> that nice black dot character) ?
>
> --
> Elias


What your actually doing here is changing the character used to represent
the password. You need to be toggling the password style bit of the edit
control. You can do this using ModifyStyle like this...

// off
m_edit1.ModifyStyle( ES_PASSWORD, 0 );

// on
m_edit1.ModifyStyle( 0, ES_PASSWORD );

--
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.


.



Relevant Pages

  • Re: setpassword and xp styles?
    ... > Then if I call setpasswordcharthe black dot char never returns... ... > Any ideas how to swap between non password field to password field (with ... Hi Elias, ...
    (microsoft.public.vc.mfc)
  • setpassword and xp styles?
    ... i have EDIT1 mapped to m_edt1 that have a password style. ... Then if I call setpasswordcharthe black dot char never returns... ... Any ideas how to swap between non password field to password field (with ...
    (microsoft.public.vc.mfc)
  • Re: web.config appSettings Store value with & character
    ... check the password field contain "&" character. ... So how to store value in web.config that contain "&" character, ... An error occurred during the processing of a configuration ... Source Error: ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • web.config appSettings Store value with & character
    ... check the password field contain "&" character. ... So how to store value in web.config that contain "&" character, ... An error occurred during the processing of a configuration ... Source Error: ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • web.config appSettings Store value with & character
    ... check the password field contain "&" character. ... So how to store value in web.config that contain "&" character, ... An error occurred during the processing of a configuration ... Source Error: ...
    (microsoft.public.dotnet.framework.aspnet)