본문 바로가기

카테고리 없음

[MFC(Visual C++)] 다이얼로그 투명화

HWND hWnd = m_pChildDlg->GetSafeHwnd();

::SetWindowLong(hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) | WS_EX_LAYERED);

m_pChildDlg->SetLayeredWindowAttributes(0, 60, LWA_ALPHA);


위의 '60'을 조절하면 투명도를 조정할 수 있다.