Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Always on Top - Reserving Space

Status
Not open for further replies.

cpope

Programmer
Jul 7, 2000
58
US
I am developing an application, and I currently have the it successfully staying on top. The problem I am experiencing is that other applications and icons can be hidden behind the application. This is just a small application about 0.5" tall and is the total width of the screen, I would like it so other applications can be opened without my application hiding the menu/minimize/maximize sections of the application. I would like the application to reserve "desktop space" (not covering any icons) and have other applications maximize only to the bottom of my application.

Does someone here have the code snippet to do so?? I am using the "always on top" code that microsoft provides on their site:

 
The 'topmost' code that you have included is designed to do exactly what you are having a problem with. If you take the code out, other applications will be able to cover your application.
 
You need to investigate writing a Desk Band. On the MSDN site, follow this path through the tree:

MSDN Home > MSDN Library > Shell Programmers Guide > Advanced Shell Techniques

Hope this gets you started. It's not an easy subject (a guy at my last job did it once, and it took him a month of his spare time)

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top