I have a listview that I am owner drawing the column headers, sub items and items. My problem is when I draw the column header it does not draw the background past the last actual column. I am left with a space with the default column header background when there are not enough items in the list view to show the vertical scroll bar.
Is there a way I can paint the background of this space or permanently show the vertical scroll bar?
Here is a picture of my issue. The code I am trying to use actually is compiling, but when I try to call the method I get a TypeLoadException saying the method 'ShowScrollBar' has no implementation.
[DllImport("user32.dll")]
static extern int ShowScrollBar(IntPtr hWnd, int wBar, bool bShow);