+ //Console.WriteLine ("MouseMove (Location: {0}", e.Location);
+ base.OnMouseMove (e);
+ }
+
+ protected override void Paint (Graphics graphics, Rectangle clipBounds, Rectangle cellBounds,
+ int rowIndex, DataGridViewElementStates elementState, object value,
+ object formattedValue, string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle,
+ DataGridViewPaintParts paintParts) {
+
+
+ Rectangle button_area, text_area;
+ text_area = cellBounds;
+ button_area = CalculateButtonArea (cellBounds);
+
+ graphics.FillRectangle (ThemeEngine.Current.ResPool.GetSolidBrush (cellStyle.BackColor), cellBounds);
+ ThemeEngine.Current.CPDrawComboButton (graphics, button_area, ButtonState.Normal);
+
+ string text;
+ if (formattedValue == null)
+ text = string.Empty;
+ else {
+ text = formattedValue.ToString ();
+ }
+
+ graphics.DrawString (text, cellStyle.Font, ThemeEngine.Current.ResPool.GetSolidBrush (cellStyle.ForeColor), text_area, StringFormat.GenericTypographic);