-
Notifications
You must be signed in to change notification settings - Fork 922
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
windows feature WS_EX_NOREDIRECTIONBITMAP #575
windows feature WS_EX_NOREDIRECTIONBITMAP #575
Conversation
src/os/windows.rs
Outdated
@@ -55,6 +55,9 @@ pub trait WindowBuilderExt { | |||
|
|||
/// This sets `ICON_BIG`. A good ceiling here is 256x256. | |||
fn with_taskbar_icon(self, taskbar_icon: Option<Icon>) -> WindowBuilder; | |||
|
|||
/// This sets `WS_EX_NOREDIRECTIONBITMAP`. | |||
fn with_no_redirection_bitmap(self) -> WindowBuilder; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's conventional for builder methods to take a bool
, for more flexibility.
Well, I don't really know how to test this, since it just makes my OpenGL app transparent. My only question is if this is mutually exclusive with |
Excuse my translation. It becomes exclusive designation. Both can be used as a means to realize a transparent window, but the realization method is different. WS_EX_NOREDIRECTIONBITMAP specifies not to display the GDI bitmap. As a composition surface, you can specify a swap chain. I am sorry, I can not prepare a small sample now. |
It would be good if enabling this caused the call to |
Thank you. Check the source and fix it. |
Alright, looks great. |
CHANGELOG.md
if knowledge of this change could be valuable to usersWindows additionally has
WindowBuilderExt::with_no_redirection_bitmap
.In order to use Direct Composition API, implemented the function to set WS_EX_NOREDIRECTIONBITMAP extended attribute.
ref: MSDN Windows with C++ - High-Performance Window Layering Using the Windows Composition Engine