Click here to Skip to main content
15,925,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Change Image in CListCtrl Pin
Abbas_Riazi30-Jan-03 7:03
professionalAbbas_Riazi30-Jan-03 7:03 
GeneralDialog in dll Pin
dawo30-Jan-03 5:06
dawo30-Jan-03 5:06 
GeneralRe: Dialog in dll Pin
Abbas_Riazi30-Jan-03 7:09
professionalAbbas_Riazi30-Jan-03 7:09 
GeneralRe: Dialog in dll Pin
will138330-Jan-03 7:20
will138330-Jan-03 7:20 
GeneralMessage Timers Pin
Dov Sherman30-Jan-03 5:05
Dov Sherman30-Jan-03 5:05 
GeneralRe: Message Timers Pin
Jeremy Falcon30-Jan-03 8:00
professionalJeremy Falcon30-Jan-03 8:00 
GeneralDynamic Change Between Single/Multi select i CListCtrl Pin
Michael Olsen30-Jan-03 4:32
Michael Olsen30-Jan-03 4:32 
GeneralRe: Dynamic Change Between Single/Multi select i CListCtrl Pin
Navin30-Jan-03 4:53
Navin30-Jan-03 4:53 
I am assuming the CListCtrl is similar in this regard to the CListBox. If anyone knows of a good way to do this with CListCtrl, I want to know too.

But I do know you can't do it with a listbox. The Windows designers apparently never figured that someone might want to switch between single select and multiple select at run-time...

So your options are as follows:
Green Alien | [Alien] Create *two* list controls, right on top of each other, one is a Multiselect, the other is a Single select. Show only the one you want at any given time. Whenever you change between Single and Multiple select, show the appropriate list, and synchronize the contents. The disadvantage is that functions that do something to the list control have to be smart enough to know which one to use... or you have to make a wrapper class around the list controls to handle it.

Green Alien | [Alien] Create a custom control, or derive a new control from CListCtrl and do the rest of the functionality manually. Then post it on CP as an article. Big Grin | :-D





You can pick your friends, and you can pick your nose, but you can't pick your friend's nose.
GeneralRe: Dynamic Change Between Single/Multi select i CListCtrl Pin
User 665830-Jan-03 5:44
User 665830-Jan-03 5:44 
GeneralRunning one function but different paths for a number of menu items Pin
ns30-Jan-03 4:27
ns30-Jan-03 4:27 
GeneralRe: Running one function but different paths for a number of menu items Pin
HENDRIK R30-Jan-03 4:47
HENDRIK R30-Jan-03 4:47 
GeneralRe: Running one function but different paths for a number of menu items Pin
ns30-Jan-03 5:04
ns30-Jan-03 5:04 
GeneralRe: Running one function but different paths for a number of menu items Pin
HENDRIK R30-Jan-03 5:12
HENDRIK R30-Jan-03 5:12 
GeneralRe: Running one function but different paths for a number of menu items Pin
ns30-Jan-03 6:02
ns30-Jan-03 6:02 
GeneralRe: Running one function but different paths for a number of menu items Pin
HENDRIK R30-Jan-03 21:24
HENDRIK R30-Jan-03 21:24 
GeneralCannot open include file: 'iphlpapi.h' Pin
Anonymous30-Jan-03 4:16
Anonymous30-Jan-03 4:16 
GeneralRe: Cannot open include file: 'iphlpapi.h' Pin
Andreas Saurwein30-Jan-03 4:47
Andreas Saurwein30-Jan-03 4:47 
GeneralRe: Cannot open include file: 'iphlpapi.h' Pin
Anonymous30-Jan-03 21:28
Anonymous30-Jan-03 21:28 
GeneralRe: Cannot open include file: 'iphlpapi.h' Pin
Anonymous30-Jan-03 21:47
Anonymous30-Jan-03 21:47 
GeneralRe: Cannot open include file: 'iphlpapi.h' Pin
naradaji31-Jan-03 3:22
naradaji31-Jan-03 3:22 
QuestionCbitmapButton work as a checkbox ? Pin
Maximilien30-Jan-03 4:13
Maximilien30-Jan-03 4:13 
GeneralSysListView32 Pin
shivpal30-Jan-03 3:32
shivpal30-Jan-03 3:32 
GeneralDid you forget to initialize common controls? Pin
30-Jan-03 3:45
suss30-Jan-03 3:45 
GeneralRe: Did you forget to initialize common controls? Pin
shivpal30-Jan-03 3:59
shivpal30-Jan-03 3:59 
GeneralDestructor question, STL map Pin
ns30-Jan-03 3:13
ns30-Jan-03 3:13 

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.