ウィンドウを半透明にするには、SetLayeredWindowAttributes()を使用する。 GetWindowLong()で現在のウィンドウの属性を取得しGetWindowLong()でWS_EX_LAYERED属性を追加してからSetLayeredWindowAttributes()で半透明にする。 以下のサンプルではSetLayeredWindowAttributes()の第2引数に指定した透過率でウィンドウを半透明にしている。 LONG exStyle = GetWindowLong( this->GetSafeHwnd(), GWL_EXSTYLE ); SetWindowLong(this->GetSafeHwnd(), GWL_EXSTYLE, exStyle | WS_EX_LAYERED); this->SetLayeredWindowAttributes(RGB(