Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

窗口透明属性导致双缓冲功能失效问题 #78

Open
ren93 opened this issue Nov 1, 2021 · 3 comments
Open

窗口透明属性导致双缓冲功能失效问题 #78

ren93 opened this issue Nov 1, 2021 · 3 comments

Comments

@ren93
Copy link

ren93 commented Nov 1, 2021

你好,有个问题请教下

我创建了一个带双缓冲属性的窗口

然后为了让这个窗口透明,我设置了透明属性

SetWindowBkColor(hwnd, RGBA2Pixel(HDC_SCREEN, 0,0,0,0));

但是设置了这个透明属性以后,双缓冲失效了,请问下是什么原因?有什么解决办法?

@ren93 ren93 changed the title 双缓冲窗口和透明属性冲突问题 透明属性导致双缓冲窗口失效问题 Nov 1, 2021
@ren93 ren93 changed the title 透明属性导致双缓冲窗口失效问题 窗口透明属性导致双缓冲功能失效问题 Nov 2, 2021
@VincentWei
Copy link
Owner

I think it is caused by the transparent alpha component, the old content can not be erased by the new content.

You can call SetSecondaryDC() function to specify a function implemented by yourself as the callback to update the content in your secondary DC to the screen.

@ren93
Copy link
Author

ren93 commented Nov 2, 2021

我刚接触minigui嵌入式开发,版本是minigui3.0 能说下具体怎么做吗?非常感谢!

@htk719809837
Copy link

htk719809837 commented Oct 13, 2022

#92 可以看看这个,或许有点帮助

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants