Form Left Edge Width, Form Top Caption and Menu Height
I need to get the global X,Y Coordinates of the upper left corner of a form surface so to do so I need to know edge width and form caption height and mu height.
Not the top left of the form.
The form may or may not have a Menu showing.
So it needs to take into account the form left edge width, the form caption and the menu height.
Re: Form Left Edge Width, Form Top Caption and Menu Height
To clarify, if I understand correctly, GetClientRect gets the coordinates of what I call the form canvas or the area on the form surface that I can draw on.
But if the cursor goes off the form what do I get ?
Re: Form Left Edge Width, Form Top Caption and Menu Height
Originally Posted by LorinM
To clarify, if I understand correctly, GetClientRect gets the coordinates of what I call the form canvas or the area on the form surface that I can draw on.
But if the cursor goes off the form what do I get ?
Not sure what the cursor has to do with GetClientRect.
Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.