Password Fields |
Post Reply |
Author | |
JDonovan
Newbie Joined: 29 December 2003 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 29 December 2003 at 9:08pm |
Is there an easy way to add a password protected edit control in a Property Grid? I added my own custom edit control without problem (all based on the CustomItems code supplied from CodeJock), and this control is a CEdit with the ES_PASSWORD flag on. It works great at initialization and when editing the text, but as soon as focus goes to another section the *actual* text is written back to the grid cell. I really need to use this with password protection on some of the fields, any help would be appreciated. Thanks!
- Jeffrey Donovan
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
override OnDrawItemValue:
BOOL CCustomItemIcon::OnDrawItemValue(CDC& dc, CRect rcValue) CString strPassword = {"*" * length(m_strValue)} dc.DrawText( strPassword, rcValue, DT_SINGLELINE|DT_VCENTER); return TRUE; |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
JDonovan
Newbie Joined: 29 December 2003 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Perfect!
Thanks so much for the help and fast response Oleg, appreciate it muchly.
- Jeffrey Donovan |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |