Re: Disabling a listbox, yet keep scrolling functional...
You could set the selection type to None and the Notify style to false so no
messages will be sent. I think this will leave scrolling enabled and give
you want you want (a scrollable list with no selection possible).
Tom
"someone else" <someone else@discussions.microsoft.com> wrote in message
news:3369B21B-B43E-4C7C-8F63-2A85E17A2C43@microsoft.com...
I've tried many programmatic attempts to disable a listbox (created using
the
wizard), while keeping the scrolling functional. Now surely Microsoft
considered this a quite likely use case - allowing the user to see ALL the
contents, but having them non-selectable and the box greyed out as a
visual
cue - so I assume a straightforward way exists (i.e., one without having
to
take over drawing, etc.).
I'll tell you what doesn't work, e.g.: disabling the control, followed by
calling the CWnd base class EnableScrollBar function with the appropriate
arguments.
Using C++.
Thanks to anyone with the info.