long lExstyle = GetWindowLong(m_hWnd, GWL_EXSTYLE); lExstyle = lExstyle|WS_EX_LAYERED; SetWindowLong(m_hWnd, GWL_EXSTYLE, lExstyle);
BYTE m_bytAlpha = 50; //透明度
SetLayeredWindowAttributes(NULL, m_bytAlpha, LWA_ALPHA);