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

Use with mingw64 (no SDK) #6

Open
TheGreatRambler opened this issue Feb 19, 2020 · 4 comments
Open

Use with mingw64 (no SDK) #6

TheGreatRambler opened this issue Feb 19, 2020 · 4 comments

Comments

@TheGreatRambler
Copy link

I wish to use this with the mingw64 api, which has the Windows headers but not the Windows SDK headers. In addition, if there was an easy way to call this as a function from a header to apply to any window, that would be awesome to know.

@ysc3839
Copy link
Owner

ysc3839 commented Feb 19, 2020

What is "has the Windows headers but not the Windows SDK headers"? What errors did you get?
I don't use mingw, maybe later when I have time I will test it.

to apply to any window

This is not easy to do, maybe by hooking CreateWindowEx. But I don't think it's a good solution.

@TheGreatRambler
Copy link
Author

I don't exactly recall which headers, but a few were not present on my machine. I looked them up and it stated that they were a part of the Windows SDK. I have certain headers, like Windows.h however. When I say any window, I still have access to the window on creation, using wxwidgets, and I am able to obtain the hWnd, which I noticed this library takes as an argument to apply dark mode.

@ysc3839
Copy link
Owner

ysc3839 commented Feb 23, 2020

Applying darkmode on top-level window is not enough. You have to apply to every child window. If you have the hWnd of top-level window, you can do a recursive enum of child window.

@TheGreatRambler
Copy link
Author

What functions in DarkMode.h would I have to use on each child window?

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

2 participants