Questions tagged [ccombobox]

CComboBox class provides the functionality of a Windows combo box.

CComboBox class provides the functionality of a Windows combo box.

55 questions
0
votes
1 answer

Does CComboBox control always takes capital letters as we type in it

I am using CComboBox control. When I type some characters in it and check which letter is typed in(in PreTranslateMessage()), then I always get capital letter in its message's wParam. My CComboBox control does not have uppercase property TRUE. Why…
Sam L
  • 31
  • 6
0
votes
1 answer

Debug Assertion Failed while creating CCombobox with Overdrawn Property

I am trying to create a CCombobox with the following code: CComboBox* cSearchBar = new CComboBox(); if (!cSearchBar->Create(WS_VISIBLE | WS_CHILD | WS_TABSTOP | CBS_OWNERDRAWFIXED | CBS_DROPDOWN | CBS_AUTOHSCROLL, CRect(150,10,325,15), this,…
Itban Saeed
  • 1,660
  • 5
  • 25
  • 38
0
votes
1 answer

MFC CComboBox OnKillFocus/ShowDropDown after SetCurSel on Windows 7

As you may know a CComboBox (DropDownList style) only selects properly by typing if you don't let it autosort it's content. Here an example of what i mean: You type A and then B. If it is not on autosort it will first select the next entry…
user302644
  • 1
  • 1
  • 2
0
votes
1 answer

Combobox cbn_closeup event

I have combo box created with style CBS_DROPDOWN | CBS_HASSTRINGS | WS_VISIBLE | WS_CHILD.i want to perform some action on command cbn_closeup.But my control is not getting this event.Even in spy++ there is no cbn_closeup sent to combo box.Please…
0
votes
1 answer

CComboBox, more than 65535 items

So I created a CComboBox. There are more than 65535 items. When I drag the scroll bar past item number 65535, it shows items earlier in the box. If I let go of the the scrollbar, it jumps up. Other things work, page up, page down, hitting the…
0
votes
1 answer

Turning off auto-complete for ComboBox

The standard Windows/MFC ComboBox (dropdown-mode) has an auto-complete feature that I'd like to turn off, but don't know how. Example 1: Create a ComboBox with the list values "Abc" and "Def". Enter "A" as edit value and use the drop-down-button.…
user178379
  • 240
  • 2
  • 11
0
votes
1 answer

Catching Enter Keypress from a CComboBox

Once a user types something in to my CComboBox (within a CDialog subclass) and presses Enter, I would like to add what they've written to the list of options, and do some other handling. How do you do that in MFC?
Smashery
  • 57,848
  • 30
  • 97
  • 128
0
votes
1 answer

WinApi owner CComboBox edit window, edit window inside CComboBox

I have a question if is there a possibility to owner CComboBox edit window(top most window of CComboBox/edit window inside a ComboBox) Because i have made that a CComboBox is OWNERDRAW and I can draw on items( via DrawItem() method) I also would…
0
votes
0 answers

winapi CComboBox draw on edit item

i am writing in WinApi/MFC my own control CCustomComboBox , which inherits from CComboBox, and i would like to draw in items instead of putting into them only a text. I achieved this by defining a style CBS_OWNDERDRAWVARIABLE and then draw in…
-1
votes
1 answer

How to add objects to CComboBox

I have declared my CComboBox as follows : final CCombo combobox= new CCombo(shell, SWT.BORDER); combobox.setBounds(30, 22, 88, 21); ResultSet result = statement.executeQuery(); I want to add an object of Class myCombo to combobox …
nosdalg
  • 571
  • 1
  • 5
  • 23
1 2 3
4