Answer the question
In order to leave comments, you need to log in
How to set window transparency (or why it doesn't work)?
I'm trying to initially set the transparency of the window, but it doesn't work (both transparency and color change):
BOOL MainDlg::Cls_OnInitDialog(HWND hwnd, HWND hwndFocus, LPARAM lParam)
{
SetLayeredWindowAttributes(hwnd, RGB(43, 45, 66), 128, LWA_ALPHA);
return TRUE;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question