OnDrawColumnHeader() protected method

protected OnDrawColumnHeader ( DrawListViewColumnHeaderEventArgs e ) : void
e DrawListViewColumnHeaderEventArgs
return void
Exemplo n.º 1
0
		protected virtual bool DrawListViewColumnHeaderOwnerDraw (Graphics dc, ListView control, ColumnHeader column, Rectangle bounds)
		{
			ListViewItemStates state = ListViewItemStates.ShowKeyboardCues;
			if (column.Pressed)
				state |= ListViewItemStates.Selected;

			DrawListViewColumnHeaderEventArgs args = new DrawListViewColumnHeaderEventArgs (dc,
					bounds, column.Index, column, state, SystemColors.ControlText, ThemeEngine.Current.ColorControl, DefaultFont);
			control.OnDrawColumnHeader (args);

			return !args.DrawDefault;
		}