HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

AutoCompleteRefresh

Opens or refreshes the autocomplete window.

C

BOOL SftMask_AutoComplete_Refresh(HWND hwndCtl);

C++

BOOL CSftMask::AutoCompleteRefresh();

Parameters

hwndCtl

The window handle of the masked edit control.

Returns

The return value is TRUE if the autocomplete window was opened or refreshed.

Comments

The call has no effect unless autocomplete is configured (see the auto_iMode and auto_iContents fields). A typical use is opening the suggestion list in response to the SFTMASKN_ELLIPSECLICKED notification when using the ellipse button edit style (see Ellipse Buttons).

Examples

C

        InitPath(hwndDlg);
        SftDarkMode_ApplyToDialog(hwndDlg);
        return TRUE;

    case WM_COMMAND:
        switch (LOWORD(wParam)) {
        case IDC_PATH:
            if (HIWORD(wParam) == SFTMASKN_ELLIPSECLICKED)
                SftMask_AutoComplete_Refresh((HWND) lParam); // open the suggestion dropdown
            break;
        case IDCANCEL:
            EndDialog(hwndDlg, 0);
            return TRUE;
        }
        break;
    }

C++

    // Dark mode
    SftDarkMode_ApplyToDialog(m_hWnd);

    return TRUE;
}

void CMainDlg::OnPathEllipse()
{
    m_Path.AutoCompleteRefresh(); // open the suggestion dropdown
}

void CMainDlg::OnOK()
{
    // Enter must not close the sample
}

See Also AutoComplete | Ellipse Buttons | Rollup


Last Updated 08/30/2026 - (email)
© 2026 Softel vdm, Inc.