TaskBar应用程序 - 更新问题 [英] TaskBar application - update problem

查看:115
本文介绍了TaskBar应用程序 - 更新问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我写了一个任务栏应用程序。工作正常,但我有一点问题。

当我调整Windows任务栏的大小时,如果我有一个最大化的窗口,窗口大小会更新。

在我的应用程序中,当我启动它,我无法更新桌面上打开的所有窗口。



这就是我改变工作区的方式/>


 SystemParametersInfo(SPI_SETWORKAREA,
0
& workArea,
SPIF_SENDWININICHANGE | SPIF_UPDATEINIFILE);





任何人都可以知道如何设置桌面工作区并发送消息所有要调整大小的窗口?



最佳制裁

Filipe Marques

解决方案

< blockquote>我找到了问题的解决方案。在CodeProject中找到这篇文章:

这是链接:

C#确实Shell,第3部分 [ ^ ]



要创建任务应用程序,必须使用 SHAppBarMessage 用于这些目的的功能而不是我做过的 SystemParametersInfo 功能。



祝你好运

Filipe Marques


Hi,

I am write a taskbar application. Works fine but I have a little issue.
When I resize the Windows taskbar and if I have a maximized window, the window size is updated.
In my application, when I start it, I'm not able to update all windows that are open in my desktop.

This is how I am make the change of the work area

SystemParametersInfo(SPI_SETWORKAREA,
    0,
    &workArea,
    SPIF_SENDWININICHANGE|SPIF_UPDATEINIFILE);



Can anyone knows how to set the desktop work area and send a message to all windows to be resized?

Best reguards
Filipe Marques

解决方案

I figured out the solution to my problem. Found this article here in CodeProject:
Here is the link:
C# does Shell, Part 3[^]

To create a task application, must use SHAppBarMessage function for these purpose and not the SystemParametersInfo function that was I did.

Best regards
Filipe Marques


这篇关于TaskBar应用程序 - 更新问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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