MFC中创建透明窗口 展开全文 第一种 全透明 1.设置窗口透明 1://Set WS_EX_LAYERED on this window 2: ::SetWindowLong(GetSafeHwnd(), 3: GWL_EXSTYLE, 4:::GetWindowLongPtr(GetSafeHwnd(),GWL_EXSTYLE)|WS_EX_LAYERED); 5: 6://Make this window 70% alpha transparent...
1.设置窗口透明 1://Set WS_EX_LAYERED on this window 2: ::SetWindowLong(GetSafeHwnd(), 3: GWL_EXSTYLE, 4: ::GetWindowLongPtr(GetSafeHwnd(),GWL_EXSTYLE)|WS_EX_LAYERED); 5: 6://Make this window 70% alpha transparent 7:this->SetLayeredWindowAttributes(0,(255*70)/100,LWA_ALPHA); 2...