Exemplo n.º 1
0
         public static extern bool IsThemeBackgroundPartiallyTransparent(
 SafeThemeHandle hTheme, int iPartId, int iStateId);
Exemplo n.º 2
0
         public static extern IntPtr GetThemePartSize(SafeThemeHandle hTheme,
 IntPtr hdc, int iPartId, int iStateId, IntPtr prc,
 THEMESIZE eSize, ref Size psz);
Exemplo n.º 3
0
         public static extern IntPtr GetThemeMargins(SafeThemeHandle hTheme,
 IntPtr hdc, int iPartId, int iStateId, int iPropId, IntPtr prc,
 ref Rectangle pMargins);
Exemplo n.º 4
0
         public static extern int DrawThemeText(SafeThemeHandle hTheme,
 IntPtr hDC, int iPartId, int iStateId,
 [MarshalAs(UnmanagedType.LPWStr)] string pszText, int iCharCount,
 TextFormatFlags dwTextFlag, int dwTextFlags2, ref Rectangle pRect);
Exemplo n.º 5
0
         public static extern IntPtr DrawThemeBackground(
 SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId,
 ref Rectangle pRect, ref Rectangle pClipRect);
Exemplo n.º 6
0
 protected override void Initialize(ToolStrip toolStrip)
 {
     base.Initialize(toolStrip);
        control = toolStrip;
        hTheme = NativeMethods.OpenThemeData(toolStrip.Handle, "MENU");
 }