Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

Password1 Sample (C++)

This sample illustrates password input.

This is not an executable sample, so a complete project is not provided. These statements are intended to show basic concepts and the syntax used.

BOOL CProject1Dlg::OnInitDialog()
{
    CDialog::OnInitDialog();

    m_pMask1 = m_Mask1.GetControlUnknown();
    _ASSERT(m_pMask1 != NULL);

    m_pMask1->Caption->SizePercent = 33;
    m_pMask1->Caption->Text = _T("&Password");
    m_pMask1->PromptUnderline = VARIANT_FALSE;
    m_pMask1->Mask = _T("");
    m_pMask1->PswdChar = _T("*");
    m_pMask1->MaxLength = 16;

    return TRUE;  // return TRUE  unless you set the focus to a control
}

Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.