C# Class Nagru___Manga_Organizer.ListViewNF

Fixes default's broken Update (it no longer acts as a refresh)
Author: geekswithblogs.net (Feb 27, 2006)
Inheritance: System.Windows.Forms.ListView
Datei anzeigen Open project: Nagru/Manga-Organizer

Public Properties

Property Type Description
staticColumns HashSet

Private Properties

Property Type Description
GetScrollPos int
InDesignMode bool
ListViewNF System
SetWindowTheme int

Public Methods

Method Description
Alternate ( ) : void

Alternate row colors in the listview

SortRows ( ) : void

Resets the alternating row colours after the Sort operation

Protected Methods

Method Description
OnColumnClick ( System.Windows.Forms.ColumnClickEventArgs e ) : void

Call custom sorting whenever a column is clicked

OnHandleCreated ( EventArgs e ) : void
OnNotifyMessage ( Message m ) : void

Filter out the WM_ERASEBKGND message

WndProc ( Message &m ) : void

Wrapper to provide an onscroll event

Written by Martijn Laarman, 24 July 2009

Private Methods

Method Description
GetScrollPos ( IntPtr hWnd, int nBar ) : int
InDesignMode ( ) : bool

Checks whether the control is in design mode This prevents the SQL call from breaking the VS designer

ListViewNF ( ) : System

Set the row color to be used for alternating backgrounds This value is application-scoped, so it only needs to be loaded once

SetWindowTheme ( IntPtr hWnd, string appName, string partList ) : int

Method Details

Alternate() public method

Alternate row colors in the listview
public Alternate ( ) : void
return void

OnColumnClick() protected method

Call custom sorting whenever a column is clicked
protected OnColumnClick ( System.Windows.Forms.ColumnClickEventArgs e ) : void
e System.Windows.Forms.ColumnClickEventArgs
return void

OnHandleCreated() protected method

protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs
return void

OnNotifyMessage() protected method

Filter out the WM_ERASEBKGND message
protected OnNotifyMessage ( Message m ) : void
m Message
return void

SortRows() public method

Resets the alternating row colours after the Sort operation
public SortRows ( ) : void
return void

WndProc() protected method

Wrapper to provide an onscroll event
Written by Martijn Laarman, 24 July 2009
protected WndProc ( Message &m ) : void
m Message The windows message code for what action took place
return void

Property Details

staticColumns public_oe property

public HashSet staticColumns
return HashSet