SftButton/DLL 3.0 - Button Control
SftTree/DLL 8.0 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 4.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 8.0 - Tree Control
SftButton/DLL 3.0 - Button Control
SftTree/DLL 8.0 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 4.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 8.0 - Tree Control
SftTree/NET 2.0 - Tree Control
Retrieves the current SFTMASK_CONTROL structure describing the masked edit control's attributes.
C
BOOL SftMask_GetControlInfo(HWND hwndCtl, LPSFTMASK_CONTROL lpCtl);C++
BOOL CSftMask::GetControlInfo(LPSFTMASK_CONTROL lpCtl) const;hwndCtl
The window handle of the masked edit control.
lpCtl
The address of a SFTMASK_CONTROL structure receiving the control's attributes. The cbSize member must be set to sizeof(SFTMASK_CONTROL) before the call.
The return value is TRUE if the attributes were retrieved successfully.
String pointers returned in the structure point to control-internal storage and must not be modified or freed. They remain valid until the next call into the control.
The recommended pattern for changing control attributes is GetControlInfo, modify the desired fields, SetControlInfo.
/**********************************************************************/
static void InitAmount(HWND hwndDlg)
{
HWND hwndEdit = GetDlgItem(hwndDlg, IDC_AMOUNT);
SFTMASK_CONTROL Ctl;
Ctl.cbSize = sizeof(SFTMASK_CONTROL);
SftMask_GetControlInfo(hwndEdit, &Ctl);
Ctl.fAutoSize = TRUE;
Ctl.iAlignment = ES_RIGHT;
Ctl.iBorderStyle = SFTMASK_BORDER_THIN;
Ctl.iEntrySelect = SFTMASK_ENTRYSELECTHOMEEND;
Ctl.lpszCaption = (LPTSTR) TEXT("&Amount:");
Ctl.captionfTransparent = TRUE;
Ctl.captioniPosition = SFTMASK_POSITIONLEFT;
CDialog::OnInitDialog();
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// Currency amount with dropdown calculator
SFTMASK_CONTROL Ctl;
Ctl.cbSize = sizeof(SFTMASK_CONTROL);
m_Amount.GetControlInfo(&Ctl);
Ctl.fAutoSize = TRUE;
Ctl.iAlignment = ES_RIGHT;
Ctl.iBorderStyle = SFTMASK_BORDER_THIN;
Ctl.iEntrySelect = SFTMASK_ENTRYSELECTHOMEEND;
Ctl.lpszCaption = (LPTSTR) _T("&Amount:");
Ctl.captionfTransparent = TRUE;
Ctl.captioniPosition = SFTMASK_POSITIONLEFT;See Also SetControlInfo | SFTMASK_CONTROL
