AutoComplete in CXTPControlComboBox&&CXTPComboBox |
Post Reply |
Author | |
linyilong
Newbie Joined: 17 October 2016 Location: China Status: Offline Points: 7 |
Post Options
Thanks(0)
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |