Hiya. Does anyone know how to calc the hieght of the title bar. I ask because it can vary. For example XP Theme is not the same as Windows Classic Theme + bigger ones can be made by fiddling with the settings.
I'm keen to work it out because I want to know where the top left drawable coordinate is relative to the desktop. The problem is that GetWindowRect returns the top left of the window (meaning the top left of the title bar) and I need the top left of the client area (the drawable zone). So I need to add on a few pixels to the X coord to account for the border and a certain amount for the title bar, but that amount can vary a lot.
Any ideas?
Much neater is if I can just find out where a coordinate on the graphics window (e.g 0,0) is relative to the desktop top left.
None of this would be needed if BlitMax was able to record a mouse coordinate outside of it's own window i.e. negative or greater than the window width/height. I'm not really into hacking modules for this type of fix though.
Thanks loads in advance.
I'm keen to work it out because I want to know where the top left drawable coordinate is relative to the desktop. The problem is that GetWindowRect returns the top left of the window (meaning the top left of the title bar) and I need the top left of the client area (the drawable zone). So I need to add on a few pixels to the X coord to account for the border and a certain amount for the title bar, but that amount can vary a lot.
Any ideas?
Much neater is if I can just find out where a coordinate on the graphics window (e.g 0,0) is relative to the desktop top left.
None of this would be needed if BlitMax was able to record a mouse coordinate outside of it's own window i.e. negative or greater than the window width/height. I'm not really into hacking modules for this type of fix though.
Thanks loads in advance.