[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 1997-08-25
2
Medium Priority
?
655 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month18 days, 10 hours left to enroll

834 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