Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - AutoComplete in CXTPControlComboBox&&CXTPComboBox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

AutoComplete in CXTPControlComboBox&&CXTPComboBox

 Post Reply Post Reply
Author
Message Reverse Sort Order
linyilong View Drop Down
Newbie
Newbie


Joined: 17 October 2016
Location: China
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote linyilong Quote  Post ReplyReply Direct Link To This Post Topic: AutoComplete in CXTPControlComboBox&&CXTPComboBox
    Posted: 23 July 2018 at 11:56pm
I want to create a CXTPComboBox associated a combox control which can have the same effect of autocomplete like  CXTPControlComboBox on dialog ,how to make it?


the first picture below is the effect of CXTPControlComboBox:
codes:
CComboBoxURL* pComboAddress = new CComboBoxURL(GetCommandBars());
pComboAddress->AddString(...);
...
pComboAddress->AddString(...);
pComboAddress->UpdateComboBox();
pComboAddress->SetWidth(350);
pComboAddress->SetDropDownListStyle();
pComboAddress->EnableShellAutoComplete();// this interface works!
pic:
 
and the picture below is the effect of CXTPComboBox
code:
CXTPComboBox m_cmbDropDown;
m_cmbDropDown.AddString(..)
m_cmbDropDown.EnableAutoCompletion(TRUE);
pic:

the interface "void EnableShellAutoComplete(DWORD dwFlags = SHACF_FILESYSTEM | SHACF_URLALL);" of CXTPControlComboBox make it realize, but CXTPComboBox has only the interface "void EnableAutoComplete(BOOL bAutoComplete = TRUE);" , how could I use CXTPComboBox to realize the same effect?
CXTPCotrolComboBox can only apply in menu and toobar, so I can't use it on a control in dialog,so I want to know how to use CXTPComboBox to make it
I am whatever
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.