Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="g"></param>
        /// <param name="sbRect"></param>
        /// <param name="clipRect"></param>
        /// <param name="state"></param>
        /// <param name="part"></param>
        public static void DrawScrollBar(Graphics g, Rectangle sbRect, Rectangle clipRect,
                                         ScrollBarStates state, ScrollBarParts part)
        {
            if (g == null || sbRect.Width <= 0 || sbRect.Height <= 0 ||
                clipRect.Width <= 0 || clipRect.Height <= 0)
            {
                return;
            }

            ThemeFactory.DrawThemeBackground(g, "SCROLLBAR", (int)part, (int)state, sbRect, clipRect);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Draws the background image defined by the visual style for the specified control part
 /// </summary>
 /// <param name="g">The Graphics to draw on</param>
 /// <param name="windowClass">The class of the part to draw</param>
 /// <param name="part">The part to draw</param>
 /// <param name="partState">The state of the part to draw</param>
 /// <param name="drawRect">The Rectangle in which the part is drawn</param>
 public static void DrawThemeBackground(Graphics g, string windowClass, int part, int partState, Rectangle drawRect)
 {
     ThemeFactory.DrawThemeBackground(g, windowClass, part, partState, drawRect, drawRect);
 }