close

聽起來很難,做起來超簡單=_=|,本來一開始為了這個東西去MSDN翻了一堆文件來看,發現裡面都寫得很............煩,最後,請直接看code。

 

 

 

兩行 !, 真的只有兩行 !!!

::SetWindowLong (this->m_hWnd , GWL_EXSTYLE , GetWindowLong (this->m_hWnd , GWL_EXSTYLE ) | WS_EX_LAYERED ) ;
::SetLayeredWindowAttributes(this->m_hWnd,0,(255*60)/100 , LWA_ALPHA ) ; //60 percent semitransparent 

丟安捏=_=!!!

 

讓我們看看效果 (100%)

沒改變

 

 

 

( 60 % )

 

 

最後 (10%)

 

 

 

 

 

應該看得出來才是,0%我就不示範了,就是你完全看不到就對了

that 's all 

arrow
arrow

    Eric 發表在 痞客邦 留言(0) 人氣()