SetWindowThemeAttribute

指定されたウィンドウにビジュアルスタイルがどのように適用されるかを制御する属性を設定する。

SetWindowThemeAttribute hwnd, eAttribute, pvAttribute, cbAttribute

hwnd : [intptr] 型: HWND 変更を適用するウィンドウへのハンドル。
eAttribute : [int] 
pvAttribute : [intptr] 型: PVOID 設定する属性を指定するポインター。型は eAttribute 値によって決まる。
cbAttribute : [int] 型: DWORD pvAttribute が指すデータのバイトサイズを指定する。

(プラグイン / モジュール : uxtheme.dll)

解説

指定されたウィンドウにビジュアルスタイルがどのように適用されるかを制御する属性を設定する。

[戻り値]
型: HRESULT 関数が成功した場合は S_OK を返す。それ以外の場合は HRESULT エラーコードを返す。

情報

プラグイン / モジュールuxtheme.dll
バージョン1.0
作成日2026/04/16
著作者IronHSP / CsWin32 bridge
URLhttps://github.com/inovia/IronHSP
備考Win32 API の uxtheme.dll 関数群。CsWin32 + win32metadata から自動生成。
hsp3net 専用 (intptr / NSTRUCT / wstr を使用)。
タイプ拡張命令
グループWin32API
対応環境
  • Windows 版 HSP
hs ファイルhsphelp\win32_uxtheme_gen2.hs