;============================================================ ; iron_toast.hsp — Windows トースト風通知ラッパ ; ; hsptoast.dll (Shell_NotifyIconW + NIIF_INFO) を呼ぶ薄い層。 ; UTF-8 titile/body をそのまま渡せる (DLL 側で UTF-16 に変換)。 ; ; API: ; toast title, body ; 情報通知 (青 i アイコン) ; toast_warning title, body ; 警告通知 (黄 ! アイコン) ; toast_error title, body ; エラー通知 (赤 × アイコン) ; toast_clear ; トレイアイコンを消す ; ; 例: ; #include "iron_toast.hsp" ; toast "IronHSP", "ビルドが完了しました" ; toast_error "エラー", "ファイルが見つかりません" ;============================================================ #ifndef __iron_toast_hsp__ #define __iron_toast_hsp__ #include "hsptoast.as" #module iron_toast #deffunc toast str _tl, str _bd hsptoast_show_info _tl, _bd return #deffunc toast_warning str _tl, str _bd hsptoast_show_warn _tl, _bd return #deffunc toast_error str _tl, str _bd hsptoast_show_error _tl, _bd return #deffunc toast_clear hsptoast_clear return #global #endif