Scrollbar of a CComboBox

  • Thread starter Thread starter Seko
  • Start date Start date
S

Seko

Hi,
I'd like to know if there's a way to subclass the scrollbar of a CComboBox
control?

Thanks in advance,
David
 
Can you please explain, why not? :-(

Some scrollbars are windows and some are not. If you create a window with
the WS_HSCROLL or WS_VSCROLL styles then that window gets "standard"
scrollbars that are not separate controls, they are just part of the
non-client portion of the window that contains them. This is the case for a
combobox.
 
So, there's totally no way of accessing the scrollbars, and therefore no way
to perform any custom-drawing on them?
How are XP styles handled, giving those scrollbars a whole different look
than the standard, then?
 
Seko said:
So, there's totally no way of accessing the scrollbars, and therefore no way
to perform any custom-drawing on them?
How are XP styles handled, giving those scrollbars a whole different look
than the standard, then?
It is handled by (I think) the WM_NCPAINT code for the listbox window that
goes with the combo box.
 
So, there's totally no way of accessing the scrollbars, and therefore
There is. Catch combobox's WM_NCPAINT and play with it as you wish.
JW> It is handled by (I think) the WM_NCPAINT code for the listbox
JW> window that goes with the combo box.


Rather by DefWindowProc, I think.
 
Back
Top