Closed gileli121 closed 5 years ago
Hi gileli121, Will you share details around the scenario you are trying to create? Based on the end user scenario we could offer advice.
I already created the final end result and fixed my problem.
https://windowtop.info/wp-content/uploads/windowtop-aero-example-new-c.gif
Thanks
I'm going to close this since it looks like it's been addressed. Thanks for sharing, it looks pretty neat!
Thanks, I just hope you will not break it in a way that I can't fix it.
We'll take your feedback into account, we'll look into exposing a clear color property in the API. However, it's too late for the next release for us to add such an API, so I can't make any promises.
Please update me about your decision
Steps
In
WinMain
function, add the following codes:1) Set
hwndTarget
window that is the window that we want to create replica for (capture it Example:2) Register UWP API
3) Register the window class
4) Create container window will draw the replica (the captured pixels of the
hwndTarget
)5) Start capture
The result is:
This code reproduced a case that I created a replica window with the exact same size of the
hwndTarget
and it mirroring the target. It seems that for some reason that if the replica is the exact same size and position, it will capturehwndTarget
with some small "window" as I showed in the image in red color..I attached the full source code that produce the problem.
ScreenCaptureforHWND.zip
Please fix it.
Thanks.