开发者

Call Show windows side by side in C#

Dumb question is there an ea开发者_开发问答sy way to clear to the desktop and then open two explorer windows and call the "Show windows side by side" task bar call ? Just wondering if there is an api in an MS library way to do this.


You can use the TileWindows WinAPI function via p/invoke to resize the desired windows to side-by-side.

To hide all other windows, just enumerate through them and minimise them.


A lot of API functions can be easily found on MSDN Dev Center. Without having worked with the Win API much, this is where I would start:

  1. Get collection of Windows with EnumWindows or EnumChildWindows
  2. Manipulate Window State with ShowWindow or TileWindows
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜