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
1
vote
1 answer

Set ComboBox to ID of another ComboBox

I am currently trying to set a CComboBox* with the ID that is assigned for existing combo box(IDC_COMBO). I've tried CWnd's GetDlgItem() and ID assignment, but I could not figure it out yet. I know this isn't exactly the expected details, but this…
CodeMonkey
  • 1,136
  • 16
  • 31
1
vote
1 answer

How do I disable a CComboBox while having it selectable for clipboard copy?

So first off, I have a CComboxBox that can only be obtained by GetDlgItem(cbID). This condition cannot be changed. With this combobox, I can edit the text and show the dropdown items, but I want to disable those features. I only know how to…
Vongdarakia
  • 379
  • 1
  • 12
  • 25
1
vote
1 answer

CMFCPropertyGridProperty and CCombobox binding

I was developing a MFC application and I noticed that the combobox which is created after the use of the method CMFCPropertyGridProperty::AddOption() does not have as many functionalities as the CCombobox class. Is there a way to bind objects from…
Mudkip
  • 373
  • 6
  • 27
1
vote
1 answer

Intercepting messages from a child of a child with MFC

I have a CListCtrl class and at the moment when a user selects one of the sub items I am displaying a CComboBox over the subitem which the user can then make a selection from. However I have a problem. When the user has made a selection i need the…
Goz
  • 61,365
  • 24
  • 124
  • 204
1
vote
0 answers

Get old value from CComboBox

User changes the value in a CComboBox. The function OnCbnSelchangeXXX() is called. Can I retrieve the old CComboBox´s old value in the function?
Tika
  • 333
  • 2
  • 4
  • 9
1
vote
1 answer

Cancel ccombobox value change

User selects a new value in a CComboBox. The function OnCbnSelchangeXXX() is called. Is there a way for me to cancel the change of values in the CComboBox in the function? Under some conditions the change should be cancelled, the CComboBox keeps…
Tika
  • 333
  • 2
  • 4
  • 9
1
vote
2 answers

WinApi Get Window Handle of item of ComboBox

I am trying to draw something on the Items of CComboBox in WinApi. To do this I need a handle of the window which represents the item(which contains particular item). I have a question is this possible? How can I do it? Or mayby have you got another…
0
votes
0 answers

Bolding certain characters in a CCombobox entry (C++, MFC)

I have a CComboBox containing strings of serial numbers. I want to be able to bold individual characters in the string. Like for instance, I would like to be able to make the second string 87650123 show up as 87650123. I have seen some posts about…
Christopher Nuccio
  • 596
  • 1
  • 9
  • 21
0
votes
2 answers

MFC CComboBoxEx icon update issue

I am using the CComboBoxEx control in MFC to implement an address box for a browser application which shows the address and the related site icon. According this link: http://msdn.microsoft.com/en-us/library/bb775788(v=vs.85).aspx, calling…
Stephen
  • 1
  • 1
0
votes
0 answers

How to set unicode text in CCombobox::AddString() without compiling whole c++ project in unicode?

I have a c++ project compiled in ascii. I am using Ccombox MFC class and trying to set unicode text to it using Addstring() method but it's not working. Is there any way/workaround to set unicode text to Ccomobox?
0
votes
1 answer

How to copy CComboBox data to another CComboBox?

How to copy CComboBox data to another CComboBox?
yesraaj
  • 46,370
  • 69
  • 194
  • 251
0
votes
1 answer

How do I change the font of a specific item in a CListBox/CComboBox

I have a CComboBox-derived class with a subclassed CListBox. I would like to make the first two item in the CListBox bold. How can I accomplish this?
Jeffrey Faust
  • 547
  • 3
  • 12
0
votes
1 answer

Change border color of CComboBox to show error and warning

I am using CComboBox in my project. I want to change the color of the border combo box on focus
Anoop Kumar
  • 137
  • 10
0
votes
0 answers

GetSel method always returns zero on CEdit control

On a MFC application a CEdit control of a dialogue is subclassed. There is a numerical keypad on another dialogue which is supposed to send values to that text box. If the text is highlighted on the edit control the GetSel method returns the start…
ali
  • 529
  • 4
  • 26
0
votes
1 answer

How to add background text in CCombobox

We often see a background text on search bars i.e. "Search Here", "Type here to search" etc. and it disappears when we start typing. Have a look at the following one: Is there any built-in method to implement the same functionality in an MFC…
Itban Saeed
  • 1,660
  • 5
  • 25
  • 38