?
Solved

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

Posted on 1997-08-25
2
Medium Priority
?
644 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

771 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