Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Question regarding combobox items
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Question regarding combobox items

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Question regarding combobox items
    Posted: 20 May 2009 at 5:23am
XTP 13.
 
CXTPControlComboBox *pControlCombo = (CXTPControlComboBox*)pGroup->Add(xtpControlComboBox, ID_COMBO1);
pControlCombo->SetStyle(xtpButtonIcon);
pControlCombo->SetWidth(120);
pControlCombo->SetListIconId(0);
 
That line causes the dropdown list to be drawn as a popup menu, which I really like! Is there a more intuitive API to accomplish the same thing? (The above is hacky...)
PokerMemento - http://www.pokermemento.com/
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2009 at 8:20am
Solved:
 
pControlCombo->ModifyListBoxStyle(0, LBS_OWNERDRAWFIXED | LBS_HASSTRINGS);
PokerMemento - http://www.pokermemento.com/
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.203 seconds.