Click here to Skip to main content
15,911,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRE: Keyboard hook Pin
Andreas Jäger14-Feb-00 8:20
suss Andreas Jäger14-Feb-00 8:20 
GeneralReduce color depth Pin
Alex4-Jan-00 7:15
Alex4-Jan-00 7:15 
GeneralModeless Dialog Ending Help needed Pin
Buck3-Jan-00 18:10
Buck3-Jan-00 18:10 
GeneralRE: Modeless Dialog Ending Help needed Pin
Member 10544-Jan-00 2:09
Member 10544-Jan-00 2:09 
GeneralRE: Modeless Dialog Ending Help needed Pin
Michael Owen4-Jan-00 5:05
Michael Owen4-Jan-00 5:05 
GeneralResize ActiveX control hosted in CWnd Pin
Peter Hauptmann3-Jan-00 8:24
sussPeter Hauptmann3-Jan-00 8:24 
GeneralSelect more than one item in a listbox Pin
Anonymous3-Jan-00 7:07
suss Anonymous3-Jan-00 7:07 
GeneralRE: Select more than one item in a listbox Pin
Andrei Zenkovitch3-Jan-00 8:03
Andrei Zenkovitch3-Jan-00 8:03 
Hi,

If you create list boxes explicitely using create function then make sure that you didn't specify LBS_EXTENDEDSEL or LBS_MULTIPLESEL style.
If you use dialog editor for creating the template for your dialog then you have to display a property dialog for the list box control. On this dialog you have to select the second page "Styles" and in the "Selection" combo box you have to choose "Single" item

Regards,
Andrei Zenkovitch
Dundas Software
==================
The original message was:

I have a dialog based app with three listboxes. I used AddString("") to add several items to
each string. When I run the program, it allows me to select all the items at one time. I
want the user to only be able to select one item at a time. How do I do this?

Thanks,
Stephanie
GeneralRE: RE: Select more than one item in a listbox Pin
Anonymous4-Jan-00 5:48
suss Anonymous4-Jan-00 5:48 
GeneralRE: RE: RE: Select more than one item in a listbox Pin
Anonymous4-Jan-00 5:51
suss Anonymous4-Jan-00 5:51 
QuestionHow do you use a Rich Edit Control in a dialog? Pin
Steve Roach14-Dec-99 3:35
Steve Roach14-Dec-99 3:35 
AnswerRE: How do you use a Rich Edit Control in a dialog? Pin
Jesse Ezell14-Dec-99 14:43
Jesse Ezell14-Dec-99 14:43 
GeneralExplorer.exe Pin
compwiz12-Dec-99 13:39
compwiz12-Dec-99 13:39 
GeneralRE: Explorer.exe Pin
Mike Dunn14-Dec-99 15:21
Mike Dunn14-Dec-99 15:21 
GeneralRE: RE: Explorer.exe Pin
Mike Dunn14-Dec-99 15:34
Mike Dunn14-Dec-99 15:34 
GeneralRestarting the shell Pin
Mike Dunn14-Dec-99 15:38
Mike Dunn14-Dec-99 15:38 
GeneralMultiple File Formats Loading and Saving Pin
Jesse Ezell11-Dec-99 19:10
Jesse Ezell11-Dec-99 19:10 
QuestionRich Edit Ctrl in dialog? Pin
Steve Roach11-Dec-99 12:59
Steve Roach11-Dec-99 12:59 
AnswerRE: Rich Edit Ctrl in dialog? Pin
Jesse Ezell11-Dec-99 19:07
Jesse Ezell11-Dec-99 19:07 
AnswerRE: Rich Edit Ctrl in dialog? Pin
Andrei Zenkovitch13-Dec-99 8:24
Andrei Zenkovitch13-Dec-99 8:24 
GeneralRE: RE: Rich Edit Ctrl in dialog? Pin
Steve Roach14-Dec-99 3:40
Steve Roach14-Dec-99 3:40 
GeneralModeless Dialog Boxes Pin
Anonymous11-Dec-99 9:40
suss Anonymous11-Dec-99 9:40 
GeneralRE: Modeless Dialog Boxes Pin
Anonymous11-Dec-99 12:55
suss Anonymous11-Dec-99 12:55 
GeneralRE: Modeless Dialog Boxes Pin
Stefan Ernsperger13-Dec-99 20:16
sussStefan Ernsperger13-Dec-99 20:16 
QuestionVB Control Arrays in VC++? Pin
Marc Howe10-Dec-99 6:59
Marc Howe10-Dec-99 6:59 

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.