Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to limit bottom window full screen max y position on Windows

What I'm trying to do is to create software which will behave as windows task bar.

So my point is that I want software that will be visible above task bar and when you maximize another app window it will not go over it.

Sample image

So i want that any other software when in maximized state to be till the red line. Red line will be my software which will be visible at any time except when other software is in full screen.

So is there a way to do this. C# preferred.

What I want to know is how to do it, I presume it needs to be done through WinApi, but I don't know even how call this app behavior.

Thanks in advance.

like image 310
Senad Meškin Avatar asked Sep 13 '11 12:09

Senad Meškin


1 Answers

You want to register your application as an App Bar. Use SHAppBarMessage. See this question for sample C# code.

like image 111
Raymond Chen Avatar answered Sep 30 '22 08:09

Raymond Chen