Win32 C++ SetLayeredWindowAttributes is either fully opaque or fully transparent; nothing in between
问题 So I have a 2nd Window created within my program like: #define WINDOW_CLASS_NAME "WINCLASSFULL" WNDCLASSEX winclass; LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; } some function { HINSTANCE hInstance = (HINSTANCE)GetModuleHandle(NULL); // first fill in the window class stucture winclass