タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

GUIとプログラミングに関するDecoyMakerのブックマーク (1)

  • [VC++] ウィンドウの透明・半透明化

    ウィンドウを半透明にするには、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(

    [VC++] ウィンドウの透明・半透明化
  • 1