关于OpenGL窗口透明的程序

这和OpenGL没半毛钱关系和窗口系统有关
■网友
你都查到该用什么函数了,剩下的应该不难啊。首先MSDN一下这个函数SetLayeredWindowAttributes function (Windows),知道这个函数的参数和用法:A layered window is created by specifyingWS_EX_LAYERED when creating the window with the CreateWindowEx function or by setting WS_EX_LAYERED via SetWindowLong after the window has been created.
【关于OpenGL窗口透明的程序】 Windows 8: The WS_EX_LAYERED style is supported for top-level windows and child windows. Previous Windows versions support WS_EX_LAYERED only for top-level windows.
然后google一下关于这个函数的示例代码:https://www.google.com.hk/search?newwindow=1\u0026amp;safe=strict\u0026amp;q=vc+setlayeredwindowattributes\u0026amp;revid=66638887\u0026amp;sa=X\u0026amp;ved=0ahUKEwjX7fynhZXLAhUhLqYKHQa5ACQQ1QIIYigB\u0026amp;biw=1066\u0026amp;bih=506
使用过程中出现了不懂的问题除了谷歌还可以上stackoverflow上查查:winapi - Win32 C++ SetLayeredWindowAttributes is either fully opaque or fully transparent; nothing in between

■网友
要不出门左转去csdn吧
■网友
文件连接已经失效……


    推荐阅读