SetWindowThemeNonClientAttributes function uxtheme

int SetWindowThemeNonClientAttributes(
  1. int hwnd,
  2. int dwMask,
  3. int dwAttributes
)

Sets attributes to control how visual styles are applied to a specified window.

Implementation

int SetWindowThemeNonClientAttributes(int hwnd, int dwMask, int dwAttributes) {
  final wta = calloc<WTA_OPTIONS>()
    ..ref.dwFlags = dwAttributes
    ..ref.dwMask = dwMask;
  try {
    return SetWindowThemeAttribute(hwnd, WINDOWTHEMEATTRIBUTETYPE.WTA_NONCLIENT,
        wta, sizeOf<WTA_OPTIONS>());
  } finally {
    free(wta);
  }
}