On 09/04/2016 17:07, R.Wieser wrote:
> JiiPee,
>
>> I can see it becouse I take a screenshot ...
> And there you have TWO problems: It might just be as you describe, but it
> could as easily be that that screenshot software does something you do not
> expect from it ...
no, its my own code, only like 15 lines of code to use that rectangle
and then copy that part from the screen. I checked and they all use that
rect as it is.... so they do not increase the rect. So am sure there is
nothing wrong with that code.
Also, when I maximize notepad, i can see that its frame hits the desktop
left corner (but does not go over it). And we get that -8, so obviously
there is something happening there with GetWindowRectangle.
>
>> But in this screenshot
> And thats problem #3: I have absolutily *no idea* what that "this
> screenshot" is you are referring to, nor how you made it (which program ---
> something you wrote yourself ?)
ok, but this is not even needed... this information how I did it,
becaouse as I said if I set notepad exatcly at the top left of the
screen it gives wrong -8,-8 , the GetWinRect function. There is not need
to really investigate other things untill this problem is first
solved... you agree? Why does rect return -8,-8 even though the notapads
frame is not outside the screen?
>
> Hint: You could do worse than to try to describe the problem AND what you
> use to evoke it to us as if we have absolutily no knowledge of what you are
> busy with -- something thats actually even true (at least for me, as I'm not
> a mindreader) :-)
my opinion is that it is not needed to discuss more than why we get that
-8,-8. That error needs to be solved first... and then the others...
Its like investigating why something is flying wrongly... well, we can
investigate the flying object, but maybe its better to go to the source
first and see how it was shot... error there really tells everything and
we do not need to even investigate things after that.
>
> Regards,
> Rudy Wieser
>
>
>