private void SetFlag(DrawThemeBackgroundFlags f, bool value) { if (value) { dwFlags |= f; } else { dwFlags &= ~f; } }
private bool GetFlag(DrawThemeBackgroundFlags f) => (dwFlags & f) == f;
private bool GetFlag(DrawThemeBackgroundFlags f) => (dwFlags & (int)f) == (int)f;