+ Reply to Thread
Results 1 to 2 of 2

Thread: Hot to add auto complete functionality in CEdit box in MFC?

  1. #1

    Hot to add auto complete functionality in CEdit box in MFC?

    Hot to add auto complete functionality in CEdit box in MFC?

  2. #2
    You can use "SHAutoComplete" API to achieve this feature.

    Example:

    Code:
    void CMyDialog::OnInitDialog()
    {
         CEdit *pEdit = (CEdit *) GetDlgItem(IDC_EDIT_FILE_PATH) ;
         SHAutoComplete(pEdit->m_hWnd, SHACF_DEFAULT) ;
    }
    Note:
    You should have IDC_EDIT_FILE_PATH edit box in the CMyDialog class.

+ Reply to 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