Re: setpassword and xp styles?
- From: "Frank Hickman [MVP]" <fhickman3_NOSP@xxxxxxxxxxxxxxx>
- Date: Sat, 3 Dec 2005 13:28:52 -0500
"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.
.
- References:
- setpassword and xp styles?
- From: lallous
- setpassword and xp styles?
- Prev by Date: synchronization on static bool
- Next by Date: Re: synchronization on static bool
- Previous by thread: setpassword and xp styles?
- Next by thread: Re: setpassword and xp styles?
- Index(es):
Relevant Pages
|