Listbox: Sometimes allowing multiple selection and sometimes not ? 
Author Message
 Listbox: Sometimes allowing multiple selection and sometimes not ?

I have a dialog box with a listbox where I sometimes want to allow
multiple (or extended) selection and sometimes not. Is this possible without
doing something messy like creating two almost identical dialog boxes (one
with a listbox allowing multiple/extended selection and one with a listbox not
allowing it) or having two listboxes on top of each other and showing/hiding
them one at a time, depending on whether I'm allowing multiple selection ?

I tried deriving a class from CListBox, adding it as a member to my dialog
class and then messing with the derived class'  PreCreateWindow and Create
functions but that doesn't work, the derived functions do not even get called
(the result I suspected).

Bjorn



Sat, 24 Mar 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. MFC Serialize: sometimes OK, sometimes not!

2. Update to DataRow sometimes works and sometimes not

3. WM_CREATE not called sometimes

4. Why does Parameter Info Not show sometimes?

5. Sometimes, Do not respond to command message

6. TCP: Why should send + closesocket sometimes not work?

7. Detach() seems to sometimes not get called on MFC objects such as CDateTimeCtrl

8. Q: File Open Dialogbox allow multiple file selection

9. Allowing multiple selections in a CTree

10. Allowing multiple selection on CFIleDialog

11. puzzled socket question: send function sometimes works well,sometimes works failed???

12. puzzled socket question: send function sometimes works well,sometimes works failed???

 

 
Powered by phpBB® Forum Software