显示任务栏 [英] Show Task bar

查看:120
本文介绍了显示任务栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用控件.我将其用于标题栏.它具有与标题栏一样的所有功能,但是当我输入"form"并设置为"Formborderstyle"时,将其设置为"none",然后将"control Title Bar on form"设置为最大化表单"的控件标题栏"是隐藏任务栏".那么我该怎么办.
----
安库尔:
更好的翻译/解释.我希望它更有意义.

我使用了标题栏控件.它具有所有功能,如标题栏,但是当我将其放在窗体上并使FormBorderStyle成为:none并最大化窗体时,它将隐藏任务栏.如何避免隐藏任务栏.

I used control .i used it for Title bar .it has all functionality as Title bar but when I put in "form" and make "Formborderstyle " make "none" and put "control Title Bar On form " When I make maximize "control Title Bar" of The Form is hides the "Task bar" .so what can I do for it .
----
Ankur:
A better translation/explanation. I hope it makes more sense.

I used a control for title bar. It has all functionality as title bar but when I put that on form and make FormBorderStyle: none and maximize the form, it hides the task bar. How can avoid hiding of taskbar.

推荐答案

在最大化偶数处理程序中,您必须添加代码来计算表单可能的最大大小(考虑到任务栏的大小和位置.

您可以使用pInvoke来获取包含任务栏大小和位置的系统指标.
In your maximize even handler, you have to add code that calculates the maximum possible size the form can be (taking into consideration the size AND POSITION of the taskbar.

You can do that using pInvoke to get the system metrics which contains the size and position of the task bar.


这篇关于显示任务栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆