How to ownerdraw a scrollbar inside a listbox?
-
Hi, I'm trying to do this program in C++ without MFC that creates an owner-drawn listbox with the WS_VSCROLL style. Owner drawing the listbox and listbox items is not a problem, but how do I owner draw the vertical scrollbar within the listbox? Even if I set the listbox style to LBS_OWNERDRAWVARIABLE or LBS_OWNERDRAWFIXED, the scrollbar still seems to draw normally. Thanks!
KR
-
Hi, I'm trying to do this program in C++ without MFC that creates an owner-drawn listbox with the WS_VSCROLL style. Owner drawing the listbox and listbox items is not a problem, but how do I owner draw the vertical scrollbar within the listbox? Even if I set the listbox style to LBS_OWNERDRAWVARIABLE or LBS_OWNERDRAWFIXED, the scrollbar still seems to draw normally. Thanks!
KR
-
That example uses MFC which I am not using in this program, also what I want to do is ownerdraw the internal scrollbar itself, I don't want to superimpose a new scrollbar control over top of the listbox. Isn't there a way to set the listbox's scrollbar to ownerdraw and handle that?
KR
-
Hi, I'm trying to do this program in C++ without MFC that creates an owner-drawn listbox with the WS_VSCROLL style. Owner drawing the listbox and listbox items is not a problem, but how do I owner draw the vertical scrollbar within the listbox? Even if I set the listbox style to LBS_OWNERDRAWVARIABLE or LBS_OWNERDRAWFIXED, the scrollbar still seems to draw normally. Thanks!
KR