Comments (6)
To add a bit more information to the issue.
When another application (example: notepad.exe) is resized by the user, below events are sent:
- 1 event 0x000A EVENT_SYSTEM_MOVESIZESTART
- several events 0x800B EVENT_OBJECT_LOCATIONCHANGE
- 1 event 0x000B EVENT_SYSTEM_MOVESIZEEND
However, when TVTest is resized, only below is sent:
- several events 0x800B EVENT_OBJECT_LOCATIONCHANGE
(no events 0x800A and 0x800B are received).
I think Windows needs 0x000A and 0x000B to manage the snapping.
Best,
Gaston
from tvtest.
Hello,
I believe I have managed to fix the issue with Windows snap, without any negative impact on TVTest border snap and window move by clicking on TV area.
Attached is the updated MainWindow.cpp file with the corrections.
MainWindow.cpp.zip
Summary of the changes:
-
Instead of managing window move using WM_MOUSEMOVE message (OnMouseMove function), we will manage it using the WM_MOVING message. The adjusted position (after border snapping) is returned using the WM_MOVING lParam (as described in Microsoft doc https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-moving). After this change, the window move sends the right events to the OS (EVENT_SYSTEM_MOVESIZESTART -> EVENT_OBJECT_LOCATIONCHANGE -> EVENT_SYSTEM_MOVESIZEEND) and Windows snap functions correctly.
-
Side effect of previous change -> We can no longer drag the TVTest window by clicking on the TV area. To solve this, used the WM_LBUTTONDOWN message handler to re-send the click message as if it occurred in the title area (HTCAPTION). This is then used automatically to move the window.
Obviously, as I am not a member of TVTest development team, there's a chance these changes bring some regression. Anyway, I am fully available to help with testing and corrections if needed. Just let me know.
Cheers,
Gaston
from tvtest.
Hello, Thank you for your report.
I'll try testing your patch.
from tvtest.
I committed fix.
from tvtest.
Fixed behavior with 7aa8065
from tvtest.
Hi,
Thanks! I recompiled from the latest GIT repo, and I confirm it works well.
Best regards,
Gaston
from tvtest.
Related Issues (20)
- "/min"指定すると”再生オフ”にチェックが入ってしまう HOT 2
- Spinel経由で衛星チューナーを開くと強制終了する HOT 2
- CS視聴中にSpinel経由でチャンネル変更が発生すると再生が止まる HOT 3
- スカパーJSATの宣伝用動画が表示できない HOT 7
- パン&スキャン有効時に画面キャプチャがズレる HOT 2
- 同名の音声デバイスが複数存在する環境で、音声デバイスの選択が正常に行えない HOT 5
- デュアルモノラル時に音声の自動選択が行われないことがある
- Alder Lake-S UHD 770でDXVA2によるデコードを有効にすると映像崩れが起こる HOT 5
- D3D11デコード設定でチャンネル変更時に、ランダムにクラッシュすることがある HOT 1
- MESSAGE_GETSERVICEINFOで音声PIDを5つ以上取得できない HOT 15
- DPIスケール変更時「ストリームの情報」表示が変になる HOT 1
- 音声デバイスと音声フィルタとS/PDIFパススルーのプラグインとして分離
- EVENT_PROGRAMGUIDE_COMMAND をプラグイン無効時にも受け取りたい HOT 2
- 設定ウィンドウにて、リストビューのツールチップがウィンドウの裏側に表示される HOT 3
- 音声フィルタの動作バグ HOT 1
- 拡張命令SSE4.1への対応
- DirectX11・DirectX12の切替
- fdk-aacのv2.0.2への対応 HOT 2
- Microsoft Windows 10 SDKにもオプションで対応できないか
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 tvtest.