Re: setpassword and xp styles?
- From: "Jeffrey Walton" <aaa@xxxxxxx>
- Date: Sun, 04 Dec 2005 02:22:11 GMT
"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
.
- References:
- setpassword and xp styles?
- From: lallous
- setpassword and xp styles?
- Prev by Date: Re: ID_EDIT_UNDO and ID_EDIT_REDO msg routing
- Next by Date: Re: How to add background pattern in CEditView?
- Previous by thread: Re: setpassword and xp styles?
- Next by thread: CDialog::Create() returns 0
- Index(es):
Relevant Pages
|