Exemple #1
0
         public static extern bool IsThemeBackgroundPartiallyTransparent(
 SafeThemeHandle hTheme, int iPartId, int iStateId);
Exemple #2
0
         public static extern IntPtr GetThemePartSize(SafeThemeHandle hTheme,
 IntPtr hdc, int iPartId, int iStateId, IntPtr prc,
 THEMESIZE eSize, ref Size psz);
Exemple #3
0
         public static extern IntPtr GetThemeMargins(SafeThemeHandle hTheme,
 IntPtr hdc, int iPartId, int iStateId, int iPropId, IntPtr prc,
 ref Rectangle pMargins);
Exemple #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);
Exemple #5
0
         public static extern IntPtr DrawThemeBackground(
 SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId,
 ref Rectangle pRect, ref Rectangle pClipRect);
Exemple #6
0
 protected override void Initialize(ToolStrip toolStrip)
 {
     base.Initialize(toolStrip);
        control = toolStrip;
        hTheme = NativeMethods.OpenThemeData(toolStrip.Handle, "MENU");
 }