Re: setpassword and xp styles?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"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

Hi Elias,

You might try the following if Frank's suggestion does not quite fit.

In the VC6.0 days, I think I had to call Invalidate() on the CEdit to get a
repaint to get it to take. I do recall running into the problem once (we
wanted to toggle on thee fly - we were adding an administrative 'Easter Egg'
so we could verify the user was typing in a the password that they thought
they were entering).

Jeff


.



Relevant Pages

  • Re: setpassword and xp styles?
    ... the password character shows as a nice ... > 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)
  • 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)