Solved

ModifyStyle and setting the Password Style on an CEdit control...

Posted on 1997-08-25
2
617 Views
Last Modified: 2013-11-20
I use the GetStyle function to recieve the style settings into a DWORD var and then I use this to ModifyStyle on another. Everything else (uppercase, lowercase, number, etc.) works fine, but the ES_PASSWORD setting does not carry over. The flag is set in the DWORD, but the CEdit doesn't adopt the setting. What's happening? Thanks.
0
Comment
Question by:maknight
2 Comments
 
LVL 4

Accepted Solution

by:
davmarc earned 30 total points
ID: 1304882
Probably it is simply not possible to turn a password edit control into a regular one dinamically.
Just destroy the old one and create a new with different style, or create two edit controls with different styles in the beginning and keep only one visible at any time.

Davide Marcato.
0
 

Author Comment

by:maknight
ID: 1304883
FYI: You're partially correct. You can, but not automatically by just setting the password style bit. You need to force set a password character with SetPasswordChar. Works fine now. Thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 85
bigDiff challenge 17 84
has77  challenge 9 73
Making an alias 7 81
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now