Click here to Skip to main content
15,894,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: onSize of CDialog Pin
David Crow28-Feb-06 4:52
David Crow28-Feb-06 4:52 
AnswerRe: onSize of CDialog Pin
ns28-Feb-06 5:01
ns28-Feb-06 5:01 
QuestionCEdit question (should be easy) Pin
RobJones28-Feb-06 4:22
RobJones28-Feb-06 4:22 
QuestionRe: CEdit question (should be easy) Pin
David Crow28-Feb-06 4:43
David Crow28-Feb-06 4:43 
AnswerRe: CEdit question (should be easy) Pin
RobJones28-Feb-06 4:49
RobJones28-Feb-06 4:49 
QuestionRe: CEdit question (should be easy) Pin
David Crow28-Feb-06 4:50
David Crow28-Feb-06 4:50 
AnswerRe: CEdit question (should be easy) Pin
RobJones28-Feb-06 6:37
RobJones28-Feb-06 6:37 
AnswerRe: CEdit question (should be easy) Pin
Dan McCormick28-Feb-06 16:28
Dan McCormick28-Feb-06 16:28 
<rant>
ES_PASSWORD - totally useless, don't know why it exists.
</rant>

I had this same problem until I found (after much digging) the easy way. Check out: CEdit::SetPasswordChar[^]

From the documentation:

Parameters

ch

Specifies the character to be displayed in place of the character typed by the user. If ch is 0, the actual characters typed by the user are displayed.


Apparently if an Edit control has ES_PASSWORD set when it is created (or subclassed or... lordy, who knows exactly when), MFC calls SetPasswordChar() with a value of '*'. ES_PASSWORD does not seem to be a true window style attribute, but can the documentation point that out in an obvious manner? Nooooo! Mad | :mad:

Anyway, see if that won't give you a cleaner solution. It's working well for us in our shop.

Just remember... Offer void where prohibited. Your mileage may vary.

Later,
Dan

Remember kids, we're trained professionals.
Don't try this at home!

GeneralRe: CEdit question (should be easy) Pin
RobJones1-Mar-06 0:45
RobJones1-Mar-06 0:45 
GeneralRe: CEdit question (should be easy) Pin
RobJones1-Mar-06 3:22
RobJones1-Mar-06 3:22 
QuestionHow a window can keep focus ? Pin
CHEICKNA TRAORE28-Feb-06 4:21
CHEICKNA TRAORE28-Feb-06 4:21 
QuestionRe: How a window can keep focus ? Pin
David Crow28-Feb-06 4:44
David Crow28-Feb-06 4:44 
AnswerRe: How a window can keep focus ? Pin
CHEICKNA TRAORE28-Feb-06 4:56
CHEICKNA TRAORE28-Feb-06 4:56 
GeneralRe: How a window can keep focus ? Pin
David Crow28-Feb-06 5:04
David Crow28-Feb-06 5:04 
GeneralRe: How a window can keep focus ? Pin
Stephen Hewitt28-Feb-06 12:41
Stephen Hewitt28-Feb-06 12:41 
QuestionHow a window can keep focus ? Pin
CHEICKNA TRAORE28-Feb-06 4:20
CHEICKNA TRAORE28-Feb-06 4:20 
QuestionHow my window keep focus ? Pin
CHEICKNA TRAORE28-Feb-06 4:18
CHEICKNA TRAORE28-Feb-06 4:18 
AnswerRe: How my window keep focus ? Pin
Miszou28-Feb-06 13:07
Miszou28-Feb-06 13:07 
QuestionPreparing Data Structure for Data Capture Pin
chaitanya2228-Feb-06 4:16
chaitanya2228-Feb-06 4:16 
QuestionRe: Preparing Data Structure for Data Capture Pin
David Crow28-Feb-06 4:47
David Crow28-Feb-06 4:47 
AnswerRe: Preparing Data Structure for Data Capture Pin
chaitanya2228-Feb-06 4:52
chaitanya2228-Feb-06 4:52 
QuestionRe: Preparing Data Structure for Data Capture Pin
David Crow28-Feb-06 4:54
David Crow28-Feb-06 4:54 
AnswerRe: Preparing Data Structure for Data Capture Pin
chaitanya2228-Feb-06 5:14
chaitanya2228-Feb-06 5:14 
GeneralRe: Preparing Data Structure for Data Capture Pin
David Crow28-Feb-06 5:26
David Crow28-Feb-06 5:26 
GeneralData Capture Pin
chaitanya2228-Feb-06 6:44
chaitanya2228-Feb-06 6:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.