Comments (7)
It's because we set dpi awareness, I can disable that call for windows 7 but can't guarantee that everything else works fine as windows 7 is not officially supported by this library other than that I can't think of anything that would cause the problems you mentioned
Edit: The other problems you mentioned could be caused by the windows implementation library, however I will not replace that
from webviewpp.
Windows 8.1 Support will also use the old SetDPIAwareness function - I don't want to look into why it fails on windows 7 tho as I don't plan to support Windows 7, sorry
from webviewpp.
No problem. I just curious why with pure webview2 works.
Here you have a simple test program https://github.com/diegofazio/webview2 for win32/win64. It works perfect on win7/8/10 and it use the windows implementation library. There is something in particularly in Zerge and your webview.h that make it does not work. You can compile from cmd and test it.
from webviewpp.
I just curious why with pure webview2 works.
Makes me curious too, I'll take a look a the repo you provided, maybe I can find out what causes it
from webviewpp.
Sorry I couldn't find out exactly why it happens but by just looking at the code it may be because of the call to SetProcessDpiAwareness
, as the earliest Windows version that is officially supported on is Windows 8.1, so you may want to comment out the call completely, maybe that works for you?
from webviewpp.
windows.cpp - line 51
#if defined(WEBVIEWPP_WINDOWS_8)
// SetProcessDpiAwareness(PROCESS_SYSTEM_DPI_AWARE); // NOLINT
#else
// SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE); // NOLINT
#endif
I commented both. And show a black screen but the webview windows does not appear
from webviewpp.
I commented both. And show a black screen but the webview windows does not appear
That's weird, then there seems to be another issue on windows 7 because the not setting DPI awareness should not break things
from webviewpp.
Related Issues (3)
- Multiple webview window HOT 5
- Build without Visual Studio HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webviewpp.