Click here to Skip to main content
15,918,109 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please help to create a simple ODBC database application Pin
Anthony_Yio5-Aug-03 15:25
Anthony_Yio5-Aug-03 15:25 
GeneralRe: Please help to create a simple ODBC database application Pin
ElizabethC6-Aug-03 5:58
ElizabethC6-Aug-03 5:58 
GeneralRe: Please help to create a simple ODBC database application Pin
Anthony_Yio6-Aug-03 15:17
Anthony_Yio6-Aug-03 15:17 
GeneralRe: Please help to create a simple ODBC database application Pin
ElizabethC7-Aug-03 5:56
ElizabethC7-Aug-03 5:56 
GeneralCComboBox Q. Pin
RalfPeter31-Jul-03 12:10
RalfPeter31-Jul-03 12:10 
GeneralRe: CComboBox Q. Pin
Alexander M.,31-Jul-03 12:15
Alexander M.,31-Jul-03 12:15 
GeneralRe: CComboBox Q. Pin
Anonymous31-Jul-03 12:35
Anonymous31-Jul-03 12:35 
GeneralRe: CComboBox Q. Pin
Mike Dimmick31-Jul-03 13:27
Mike Dimmick31-Jul-03 13:27 
You can't do a multiple selection in a combo box. You need to use a list box to support multiple selections. If you really need the edit control as well, you'll have to add one of your own.

In a list box (CListBox), you need to iterate over the list of items using GetSel to find out if the item is selected.

For a ListView control (CListCtrl in MFC), you can use GetFirstSelectedItemPosition and GetNextSelectedItem to find out the set of selected items.

Technically, the combo control is made up of an edit control and a list box, so you probably could find the handle of the list box and send messages to it directly. This isn't nice, though.
GeneralMiniDumpWriteDump Pin
ita_cas31-Jul-03 9:17
ita_cas31-Jul-03 9:17 
GeneralRe: MiniDumpWriteDump Pin
Alexander M.,31-Jul-03 10:26
Alexander M.,31-Jul-03 10:26 
GeneralRe: MiniDumpWriteDump Pin
ita_cas31-Jul-03 11:06
ita_cas31-Jul-03 11:06 
GeneralUsing the keyboard to access the system tray Pin
PJ Arends31-Jul-03 8:56
professionalPJ Arends31-Jul-03 8:56 
GeneralRe: Using the keyboard to access the system tray Pin
Michael Dunn31-Jul-03 9:48
sitebuilderMichael Dunn31-Jul-03 9:48 
GeneralRe: Using the keyboard to access the system tray Pin
Chris Richardson31-Jul-03 10:14
Chris Richardson31-Jul-03 10:14 
GeneralRe: Using the keyboard to access the system tray Pin
Michael Dunn31-Jul-03 10:44
sitebuilderMichael Dunn31-Jul-03 10:44 
GeneralRe: Using the keyboard to access the system tray Pin
parths31-Jul-03 15:39
parths31-Jul-03 15:39 
Questionlag when selecting/dragging text in rich edit view? Pin
mcguile25731-Jul-03 8:51
mcguile25731-Jul-03 8:51 
GeneralSource code path trees Pin
keegan31-Jul-03 7:53
keegan31-Jul-03 7:53 
GeneralRe: Source code path trees Pin
Maximilien31-Jul-03 8:21
Maximilien31-Jul-03 8:21 
GeneralOverride MessageBox button text Pin
Brigg Thorp31-Jul-03 7:24
Brigg Thorp31-Jul-03 7:24 
GeneralRe: Override MessageBox button text Pin
Alexander M.,31-Jul-03 10:30
Alexander M.,31-Jul-03 10:30 
GeneralRe: Override MessageBox button text Pin
Brigg Thorp1-Aug-03 1:23
Brigg Thorp1-Aug-03 1:23 
GeneralRe: Override MessageBox button text Pin
HPSI31-Jul-03 20:05
HPSI31-Jul-03 20:05 
GeneralCalling Store Procedure Pin
PrasadD31-Jul-03 7:13
PrasadD31-Jul-03 7:13 
GeneralRe: Calling Store Procedure Pin
Alexander M.,31-Jul-03 10:31
Alexander M.,31-Jul-03 10:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.