Exemplo n.º 1
0
        public IntPtr?GetThemeBitmap(int partId, int stateId, int propertyId)
        {
            HResult hr = UxThemeExNativeMethods.UxGetThemeBitmap(
                themeFile, theme, partId, stateId, propertyId, GBF.GBF_DIRECT, out IntPtr value);

            return(hr.Succeeded() ? value : (IntPtr?)null);
        }