Comments (7)
I can see it now also, it seems to happen when you put it exactly on the limit at the edge of the screen.
from debugviewpp.
I think the problem occurs because I take the coordinates of the window from 'GetWindowPlacement' and compare them to coordinates from 'GetSystemMetrics' and looking at the coordinates I get, they aren't working in the same coordinate-system.
from debugviewpp.
If I remember right, all the coordinates need to be in the same scale (DPI) as the primary monitor. GetScaleFactorForMonitor is what I use to convert dimensions
from debugviewpp.
from debugviewpp.
All coordinates are in pixels so no scaling is involved, but I use 'GetSystemMetrics' to know whether the stored coordinates are actually visible right now.
for example, if you have two monitors the 'virtual screen' size might be (-1920,0) - (1920,1200), but if one monitor is disconnected, half of the virtual screen's coordinates is now an 'off screen' location.
I have had complains in the past of 'debugview not showing', and this was the cause. So the prevent that I check the 'visibility' of the coordinates before restoring the window's position.
It not appears that the coordinates returned by GetSystemMetrics are not exactly aligned with the numbers coming from GetWindowPlacement...
This is where the positions are stored:
https://github.com/CobaltFusion/DebugViewPP/blob/master/DebugView%2B%2B/MainFrame.cpp#L760
and here we read/check/set them:
https://github.com/CobaltFusion/DebugViewPP/blob/master/DebugView%2B%2B/MainFrame.cpp#L684
from debugviewpp.
Related Issues (20)
- Dark theme HOT 15
- New useability HOT 5
- Message column width cannot be upsized HOT 3
- Show whole message in a tooltip HOT 1
- I need DebugView++ to trap ::OutputDebugString() while the Visual Studio Debugger is also running HOT 3
- Support for Windows 10 on ARM64 HOT 4
- Possible to auto align the text? HOT 1
- Support of Unicode OutputDebugStringW() HOT 4
- Can't see all Message Text (shows "...") HOT 2
- FIND should have history to recall previous searches HOT 1
- The log output is incorrect HOT 4
- Copy To Clipboard Buggy - Wrong Selection Copied + Select All Fails HOT 1
- Cannot compile due to 1.8.103-x64 due to boost error HOT 6
- Not capturing some messages HOT 1
- Best practice to log explicitly for DebugView++
- I hope that the interface can support multiple languages
- AnyFileReader::PrepareStep processName always overriden by filename as in BinaryFileReader HOT 2
- Unicode View Support For OutputDebugStringW HOT 7
- Unable to build the DebugViewConsole project out of the box HOT 2
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 debugviewpp.