help me

  • Thread starter Thread starter CHY
  • Start date Start date
CHY,

In order to do this, you will have to get the handle of the scrollbar if
it exists. Once you have that, you will probably have to custom draw the
control, intercepting the windows messages that are passed to the control.
You should look into deriving a class from the NativeWindow class, as it
will allow you to pass a handle to it and then you can override the WndProc
method to do what you want (handle painting, etc, etc).

You will probably have to enumerate through the handles of the child
windows of the list view as well to get the handle.

Hope this helps.
 
Or you could inherit from the scroll bar class and override OnPaint.

Nicholas Paldino said:
CHY,

In order to do this, you will have to get the handle of the scrollbar if
it exists. Once you have that, you will probably have to custom draw the
control, intercepting the windows messages that are passed to the control.
You should look into deriving a class from the NativeWindow class, as it
will allow you to pass a handle to it and then you can override the WndProc
method to do what you want (handle painting, etc, etc).

You will probably have to enumerate through the handles of the child
windows of the list view as well to get the handle.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


CHY said:
I will change listBox's scrollbar,I think add a image to scrollbar,can you
help me?
 
Back
Top