Print Page | Close Window

AutoComplete in CXTPControlComboBox&&CXTPComboBox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23683
Printed Date: 25 April 2024 at 4:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: AutoComplete in CXTPControlComboBox&&CXTPComboBox
Posted By: linyilong
Subject: AutoComplete in CXTPControlComboBox&&CXTPComboBox
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net