H Headchen Unregistered / Unconfirmed GUEST, unregistred user! 2001-09-16 #1 我需要在软件运行时设置窗口的大小,如何能够得到Windows任务栏的高度、宽度和位置?
K Kingron Unregistered / Unconfirmed GUEST, unregistred user! 2001-09-16 #3 任务栏的高度宽度=Screen.Width,Height-客户区的高度,宽度。
悲 悲酥清风 Unregistered / Unconfirmed GUEST, unregistred user! 2001-09-16 #4 var r: TRect; begin SystemParametersInfo(SPI_GETWORKAREA, 0, @r, 0);//取得工作区大小(不含任务拦) showmessage(inttostr(screen.height - (r.Bottom - r.Top))); end; 移到右侧就用 screen.width - (r.Right - r.Left)
var r: TRect; begin SystemParametersInfo(SPI_GETWORKAREA, 0, @r, 0);//取得工作区大小(不含任务拦) showmessage(inttostr(screen.height - (r.Bottom - r.Top))); end; 移到右侧就用 screen.width - (r.Right - r.Left)