knut Peters
2006-02-20 13:42:08 UTC
Hallo NG!
I try to center a Child - from within a MDIForm, using the following code:
GetWorkArea nLeft, nTop, nWidth, nHeight
pLeft = (nWidth - 9450) \ 2
pTop = (nHeight - 7005) \ 2
However, this fails in Windows XP if the Taskbar is visible. So I should
like to adjust the top - position of the Childform by deducting the height
of the taskbar from the area on the top between the MDIForm and the
Childform
Which Api does this job?
Or do you know any alternative to solve the problem?
Thanks in advance,
Knut
I try to center a Child - from within a MDIForm, using the following code:
GetWorkArea nLeft, nTop, nWidth, nHeight
pLeft = (nWidth - 9450) \ 2
pTop = (nHeight - 7005) \ 2
However, this fails in Windows XP if the Taskbar is visible. So I should
like to adjust the top - position of the Childform by deducting the height
of the taskbar from the area on the top between the MDIForm and the
Childform
Which Api does this job?
Or do you know any alternative to solve the problem?
Thanks in advance,
Knut