简体   繁体   中英

Move the overlapping application to bit down in x-axis from my application. MFC

Is it possible to change the position of other applications which is sharing the same area on screen as mine application.

I need the following output:

在此处输入图片说明

In this picture you can see my toolbar is at the top and it has shifted the browser to bit down so that both menu is visible but my application should always be on top in Z co-ordinate.

Right now what exactly my application looks like.

在此处输入图片说明

It is overlapping the toolbar of browser.

Please Suggest what should i do?

Use SetWindowPos with HWND_TOPMOST in this situation. But you need to remove the flag again, because it would keep your window over all other windows.

Or just use set SetWindowPos hWndInsertAfter parameter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM