How do you get the Relative Height and/or Width of the Screen Object relative to the Task Bar...?
In Other words...
I have A form I would like to show on the right half of the screen, maximized Vertically, but when you say:
The taskbar (positioned at the bottom of the screen) covers up the bottom part of the window...
I would like to be able to say something like...
But then You always have the possibility of the TaskBar being docked on another edge (left, top, or right) of the screen...
SO...
How would you get the RECT (Left, Top, Width, Height) of the TaskBar...
I'm guessing I'll have to use FindWindow API to get the hWnd, then the API to get it's RECT structure... (forgot the name, off the top of my head , I have it somewhere... ;-))
Is there an easier, more standardized, way of doing this?

PROGRAMMER:
Red-eyed, mumbling mammal capable of conversing with inanimate objects.
In Other words...
I have A form I would like to show on the right half of the screen, maximized Vertically, but when you say:
Code:
Width = 11700
[b]Height = Screen.Height[/b]
Left = Screen.Width - Width
Top = 0
The taskbar (positioned at the bottom of the screen) covers up the bottom part of the window...
I would like to be able to say something like...
Code:
Width = 11700
[b]Height = Screen.Height - [i]TaskBar.Height[/i][/b]
Left = Screen.Width - Width
Top = 0
But then You always have the possibility of the TaskBar being docked on another edge (left, top, or right) of the screen...
SO...
How would you get the RECT (Left, Top, Width, Height) of the TaskBar...
I'm guessing I'll have to use FindWindow API to get the hWnd, then the API to get it's RECT structure... (forgot the name, off the top of my head , I have it somewhere... ;-))
Is there an easier, more standardized, way of doing this?

PROGRAMMER: