Re: [問題] 透明視窗
看板C_and_CPP (C/C++)作者tsaiminghan (nahgnimiast)時間16年前 (2009/03/30 21:34)推噓0(0推 0噓 0→)留言0則, 0人參與討論串1/1
※ 引述《erock (早睡吵起精神好@@)》之銘言:
: 標題: Re: [問題] 透明視窗
: 時間: Thu Oct 16 11:44:51 2008
:
: 也許你可以嘗試以下方式:
: int nAlpha(128); // 0~255 255為完全不透明.
: long l = ::GetWindowLong(m_hWnd, GWL_EXSTYLE);
: l |= WS_EX_LAYERED;
: ::SetWindowLong(m_hWnd, GWL_EXSTYLE, l);
: ::SetLayeredWindowAttributes(m_hWnd, 0, nAlpha, LWA_ALPHA);
上面這個函式要include 什麼檔案嗎?我找不到
SetLayeredWindowAttributes
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.168.78.198
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章