看板 C_and_CPP 關於我們 聯絡資訊
※ 引述《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