ccombobox

How to prevent the mouse cursor from being hidden after calling CComboBox::ShowDropDown?

In my MFC application, when I call CComboBox::ShowDropDown(), the mouse cursor is hidden until interaction with the combo box completes (when the combo box loses focus.) It doesn't reappear when the mouse is moved, like it does with edit boxes. How can I keep the mouse cursor from being hidden? ...

How to copy CComboBox data to another CComboBox?

How to copy CComboBox data to another CComboBox? ...

CComboBox automatically selects text after call to MoveWindow

I'm currently experiencing a very strange problem with a CComboBox used within a CFormView. After adding strings to the combobox (created with WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL | CBS_DROPDOWN | CBS_SORT | CBS_AUTOHSCROLL), I'm selecting an entry via CComboBox::SetCurSel and resize the combobox via MoveWindow in the OnSize(...

Catching when user selects an item from a CComboBox

This is as basic as it gets. I want to catch when the user selects an item from a CComboBox (actually, a subclass of CComboBox). Tried lots of combinations of OnCblSelChange, OnCommand. Guess I haven't hit the right combo yet (no pun intended). OS is Vista but I'm forcing an XP-style dialog (That shouldn't matter, should it?) I'm ab...

MS Access 2000 - VBA Value from a combo/text box into a file path string

Hey guys. I have a form that I intend to allow users to browse powerpoint presentations through, because there are a lot of different briefs for metrics, which is what I use this database for. So, I already know how to set up everything, just got one little hang up. If I place a combo box on the form to select from a list of different p...

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? ...

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 combo box to disappear (ie intercept CBN_SELCHANGE). The problem is that I need to make ...

In MFC, how do I tell if a CComboBox is enabled?

I see that you can enable/disable using the EnableWindow method, but how do I get it's current state? ...

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 beginning with A and then the next entry beginning with B. If it is sorted it will select the next...