Quote from
noyzen on May 24, 2021, 10:32 am
Hi, and Special Hi to @hpw
I have to use hpwGetWindowRect to get position and size of a window, and then i take screen shot of that window.
there is a problem... In my screen shot based on hpwGetWindowRect data,(Windows 10) i see a margin around image (image attacked to this post)
That means hpwGetWindowRect counting window shadow area, when window is not maximized.
When window is maximized, there is no problem.
I know that I can use math to reduce and fit window rectangle area but i don't know when window is maximized and when its normal in my case.
any solution for this? is there a way to stop function from including shadow effect to window data?
Thanks :)
Hi, and Special Hi to @hpw
I have to use hpwGetWindowRect to get position and size of a window, and then i take screen shot of that window.
there is a problem... In my screen shot based on hpwGetWindowRect data,(Windows 10) i see a margin around image (image attacked to this post)
That means hpwGetWindowRect counting window shadow area, when window is not maximized.
When window is maximized, there is no problem.
I know that I can use math to reduce and fit window rectangle area but i don't know when window is maximized and when its normal in my case.
any solution for this? is there a way to stop function from including shadow effect to window data?
Thanks :)
Uploaded files:- You need to login to have access to uploads.