public bool DrawThemeBackground(UxThemeElements eName, IntPtr hDC, int nPartID, int nStateID, ref RECT BGRect, IntPtr pClipRect) { IntPtr hTheme = GetTheme(eName); if (hTheme != IntPtr.Zero) { return(ThemeRoutines.DrawThemeBackground(hTheme, hDC, nPartID, nStateID, ref BGRect, pClipRect) == 0); } return(false); }
public bool DrawThemeBackground(UxThemeElements eName, IntPtr hDC, int nPartID, int nStateID, ref Rectangle BGRect, ref Rectangle ClipRect) { IntPtr hTheme = GetTheme(eName); if (hTheme != IntPtr.Zero) { RECT BGRECT = BGRect; RECT ClipRECT = ClipRect; return(ThemeRoutines.DrawThemeBackground(hTheme, hDC, nPartID, nStateID, ref BGRECT, ref ClipRECT) == 0); } return(false); }
public IntPtr GetTheme(UxThemeElements eName) { string strName = Enum.GetName(typeof(UxThemeElements), eName); if (EnsureTheme(strName)) { IntPtr pTheme; if (m_pLoadedThemes.TryGetValue(strName, out pTheme)) { return(pTheme); } } return(IntPtr.Zero); }
public bool GetThemeInt(UxThemeElements eName, int nPartID, int nStateID, int nPropID, out int nPropVal) { IntPtr hTheme = GetTheme(eName); return(ThemeRoutines.GetThemeInt(hTheme, nPartID, nStateID, nPropID, out nPropVal) == 0); }
public bool GetThemeBackgroundRegion(UxThemeElements eName, IntPtr hDC, int nPartID, int nStateID, ref RECT windowRect, out IntPtr pRegion) { IntPtr hTheme = GetTheme(eName); return(ThemeRoutines.GetThemeBackgroundRegion(hTheme, hDC, nPartID, nStateID, ref windowRect, out pRegion) == 0); }
public bool GetThemeBackgroundRegion(UxThemeElements eName, IntPtr hDC, int nPartID, int nStateID, Rectangle windowRect, out IntPtr pRegion) { RECT winRECT = windowRect; return(GetThemeBackgroundRegion(eName, hDC, nPartID, nStateID, ref winRECT, out pRegion)); }
public bool GetThemeBackgroundContentRect(UxThemeElements eName, IntPtr hDC, int nPartID, int nStateID, ref RECT windowRect, out RECT contentRect) { IntPtr hTheme = GetTheme(eName); return(ThemeRoutines.GetThemeBackgroundContentRect(hTheme, hDC, nPartID, nStateID, ref windowRect, out contentRect) == 0); }
public bool IsThemeBackgroundPartiallyTransparent(UxThemeElements eName, int nPartID, int nStateID) { IntPtr hTheme = GetTheme(eName); return(ThemeRoutines.IsThemeBackgroundPartiallyTransparent(hTheme, nPartID, nStateID) == 0); }