Solved

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

Posted on 1997-08-25
2
610 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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 122
Expand to include initial dialog with two choices. 9 59
no14 challenge 14 56
withoutTen challenge 14 88
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‚Ķ
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

12 Experts available now in Live!

Get 1:1 Help Now