Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

Sample3 Sample (C++)

This sample illustrates captions.

All properties are defined at design-time using the Property Dialogs.

The source code is located at C:\Program Files (x86)\Softelvdm\SftMask OCX 7.0\Samples\VC++\Sample3\Sample3Dlg.cpp or C:\Program Files\Softelvdm\SftMask OCX 7.0\Samples\VC++\Sample3\Sample3Dlg.cpp (on 32-bit Windows versions).

// All properties are defined at design-time using the Property Dialogs.

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

    // Set the icon for this dialog.  The framework does this automatically
    //  when the application's main window is not a dialog
    SetIcon(m_hIcon, TRUE);            // Set big icon
    SetIcon(m_hIcon, FALSE);        // Set small icon

    m_vSftMaskDate = m_SftMaskDate.GetControlUnknown();
    _ASSERT(m_vSftMaskDate != NULL);
    m_vSftMaskDate->Contents->DateTime = COleDateTime::GetCurrentTime();;

    m_vMask1 = GetDlgItem(IDC_SFTMASK1)->GetControlUnknown();
    _ASSERT(m_vMask1 != NULL);
    m_vMask2 = GetDlgItem(IDC_SFTMASK2)->GetControlUnknown();
    _ASSERT(m_vMask2 != NULL);
    m_vMask3 = GetDlgItem(IDC_SFTMASK3)->GetControlUnknown();
    _ASSERT(m_vMask3 != NULL);
    m_vMask4 = GetDlgItem(IDC_SFTMASK4)->GetControlUnknown();
    _ASSERT(m_vMask4 != NULL);
    m_vMask5 = GetDlgItem(IDC_SFTMASK5)->GetControlUnknown();
    _ASSERT(m_vMask5 != NULL);

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

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