Click here to Skip to main content
15,894,539 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

C++
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
Posted

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900