public static extern int GetThemeBackgroundContentRect(
     SafeThemeHandle hTheme,
     HandleRef hdc,
     int iPartId,
     int iStateId,
     [In] ref CRECT pBoundingRect,
     out CRECT pContentRect);
示例#2
0
 public static extern HResult UxGetThemePropertyOrigin(
     SafeThemeFileHandle hThemeFile,
     SafeThemeHandle hTheme,
     int iPartId,
     int iStateId,
     int iPropId,
     [MarshalAs(UnmanagedType.U4)] out PropertyOrigin pOrigin);
 public static extern int GetThemeBackgroundExtent(
     SafeThemeHandle hTheme,
     HandleRef hdc,
     int iPartId,
     int iStateId,
     [In] CRECT pContentRect,
     CRECT pExtentRect);
 public static extern HResult GetThemeTransitionDuration(
     SafeThemeHandle hTheme,
     int iPartId,
     int iStateIdFrom,
     int iStateIdTo,
     int iPropId,
     out uint pdwDuration);
 public static extern int GetThemeSysColor(SafeThemeHandle hTheme, int iColorID);
 public static extern HResult GetThemePartSize(
     SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId, CRECT prc, ThemeSize eSize, out SIZE psz);
 public static extern bool GetThemeSysBool(SafeThemeHandle hTheme, int iBoolId);
示例#8
0
 public static extern HResult UxGetThemeRect(
     SafeThemeFileHandle hThemeFile, SafeThemeHandle hTheme, int iPartId,
     int iStateId, int iPropId, out RECT pRect);
 public static extern HResult GetThemeSysString(SafeThemeHandle hTheme, int iStringID, StringBuilder pszStringBuff, int cchMaxStringChars);
 public static extern HResult GetThemeBool(SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId, out bool pfVal);
 public static extern SIZE GetThemePartSize(
     SafeThemeHandle hTheme, HandleRef hdc, int iPartId, int iStateId, CRECT prc, ThemeSize eSize);
 public static extern HResult GetThemeSysFont(SafeThemeHandle hTheme, int iFontID, [Out] LOGFONT pFont);
 public static extern int DrawThemeBackground(
     SafeThemeHandle hTheme, HandleRef hdc, int partId, int stateId, [In] CRECT pRect, [In] CRECT pClipRect);
 public static extern HResult GetThemeIntList(SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId, INTLIST pIntList);
 public static extern HResult GetThemeFont(SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId, int iPropId, [Out] LOGFONT pFont);
 public static extern HResult GetThemeMetric(SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId, int iPropId, out int piVal);
 public static extern HResult GetThemeInt(SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId, out int piVal);
 public static extern HResult GetThemeColor(SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId, out int pColor);
 public static extern HResult GetThemeSysInt(SafeThemeHandle hTheme, int iIntId, out int piValue);
 public static extern int GetThemeTextExtent(SafeThemeHandle hTheme, HandleRef hdc, int iPartId, int iStateId, [MarshalAs(UnmanagedType.LPWStr)] string pszText, int iCharCount, int dwTextFlags, [In] CRECT pBoundingRect, [Out] out Rectangle pExtentRect);
 public static extern int GetThemeRect(
     SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId, out CRECT pRect);
 public static extern HResult GetThemeBitmap(
     SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId,
     [MarshalAs(UnmanagedType.U4)] GBF dwFlags, out IntPtr phBitmap);
 public static extern HResult GetThemeMargins(
     SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId,
     int iPropId, CRECT prc, out MARGINS pMargins);
 public static extern bool IsThemeBackgroundPartiallyTransparent(SafeThemeHandle hTheme, int iPartId, int iStateId);
 public static extern int DrawThemeText(
     SafeThemeHandle hTheme, HandleRef hdc, int iPartId, int iStateId,
     string pszText, int iCharCount, int dwTextFlags, int dwTextFlags2,
     [In] CRECT pRect);
 public static extern HResult GetThemePosition(SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId, out POINT pPoint);
 public static extern CRECT GetThemeRect(
     SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId);
 public static extern HResult GetThemeStream(
     SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId,
     out IntPtr ppvStream, out uint pcbStream, SafeModuleHandle hInst);
 public static extern MARGINS GetThemeMargins(
     SafeThemeHandle hTheme, IntPtr hdc, int iPartId, int iStateId, int iPropId, CRECT prc);
 public static extern HResult GetThemeString(SafeThemeHandle hTheme, int iPartId, int iStateId, int iPropId, StringBuilder pszBuff, int cchMaxBuffChars);