Hello,
I use the System.DesktopWidth and System.DesktopHeight values to define the main window. But how is it possible to have the height of the system taskbar?
Regards
System Taskbar
Moderator: Rathinagiri
Re: System Taskbar
Hello,chrisjx2002 wrote:Hello,
I use the System.DesktopWidth and System.DesktopHeight values to define the main window. But how is it possible to have the height of the system taskbar?
It is possible with the following C-function:
Code: Select all
HB_FUNC ( GETTASKBARHEIGHT )
{
HWND hTaskBar;
RECT rc;
int nHeight;
hTaskBar = FindWindow( "Shell_TrayWnd", NULL );
GetWindowRect(hTaskBar, &rc);
nHeight = rc.bottom - rc.top;
hb_retni( nHeight );
}
I hope that helps
nTaskBarHeight := GetTaskBarHeight()
Kind Regards,
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
Grigory Filatov
"Everything should be made as simple as possible, but no simpler." Albert Einstein
- Rathinagiri
- Posts: 5482
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: System Taskbar
Thanks a lot Grigory. Really useful.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: System Taskbar
I do the same as Chris on my main window setup, and too had wondered about the taskbar.
Thanks for this information.
Bill
Thanks for this information.
Bill
-
chrisjx2002
- Posts: 192
- Joined: Wed Jan 06, 2010 5:39 pm
Re: System Taskbar
Thanks a lot. It was exactly what I was looking for.
Best regards
Best regards