+ Reply to Thread
Results 1 to 2 of 2

Thread: How to make an Edit box as password edit box in MFC?

  1. #1

    How to make an Edit box as password edit box in MFC?

    How to make an Edit box as password edit box in MFC?

    Please help.

    I have to make this for my project.

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Posts
    109
    Use CEdit :: SetPasswordChar method.

    Example:

    Code:
    BOOL CTestMFCCodeExpertsDlg::OnInitDialog()
    {
        CEdit* pEdit = (CEdit*) GetDlgItem(IDC_PASSWORD) ;
    
        pEdit->SetPasswordChar( '*' );
    }

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts