Solved

Help! How to change size of max windows.

Posted on 1997-06-23
2
231 Views
Last Modified: 2012-05-05
Problem:
My program needs to fit asides every window in focus. It's easy to do it as long as they're not maximized. I need to tell the window or exe that it is still maximized, so it doesn't behave differently. It is something like the taskbar does. How can I do the same?

It is something like an always on top program, but it is not allowed to be in the way of any menu, buttonbar or window at all, so it has to stay at the side or top of the screen and changes somehow the coordinates of it, so the other programs run like normal. An example program of such is Starfish Internet Utilities, and I need about the same.

Anyone any idea for an API-call, some C(++) code, VB-code or whatever what to achieve this?

Thanks in adv.

ABEL
0
Comment
Question by:abel
2 Comments
 
LVL 5

Accepted Solution

by:
y96andha earned 200 total points
ID: 1427590
There is a knowledge base article about creating your own windows that behave just like the taskbar does.

Try this:

PSS ID Number: Q134206
Article last modified on 08-04-1995
 
4.00
 
WINDOWS
 

---------------------------------------------------------------------
The information in this article applies to:
 
 - Microsoft Win32 Software Development Kit (SDK) version 4.0
---------------------------------------------------------------------
 
SUMMARY
=======
 
The Windows 95 shell allows an application to register an application
desktop toolbar that behaves with the same look and feel as the Windows 95
taskbar. The application desktop toolbar is always attached to one of the
outside edges of the screen and can cause the size of the desktop to be
reduced so that other applications do not overlap the application desktop
toolbar.
 
The APPBAR sample code demonstrates how to implement an application desktop
toolbar that is resizable, can attach to any side of the screen, and allows
itself to be hidden in the same way the Windows 95 taskbar automatically
hides.
 
Download APPBAR.EXE, a self-extracting file, from the Microsoft Software
Library (MSL) on the following services:
 
 - CompuServe
      GO MSL
      Search for APPBAR.EXE
      Display results and download
 
 - Microsoft Download Service (MSDL)
      Dial (206) 936-6735 to connect to MSDL
      Download APPBAR.EXE
 
 - Internet (anonymous FTP)
      ftp ftp.microsoft.com
      Change to the SOFTLIB\MSLFILES directory
      Get APPBAR.EXE
 
MORE INFORMATION
================
 
The application desktop toolbar interface for Windows 95 provides an easy
way for an application to attach windows to the edge of the screen so that
they don't overlap the Windows 95 desktop or other applications. Being able
to do this is especially useful in an application-launching program such as
the Microsoft Office Manager (MOM) utility or in an application that needs
to provide status information to the user as it runs in the background.
 
The application creates its window normally and then registers itself with
the system as an application desktop toolbar (appbar). Once registered as
an appbar, any time the window moves it must negotiate with the system for
screen space by sending the requested rectangle to the system as part of an
ABM_QUERYSETPOS message. The system then checks to see if any other appbars
are using that space and adjusts the rectangle requested so as not to
overlap. When the appbar is moved, the system resizes the desktop and moves
any currently running applications so they do not overlap the appbar.
 
REFERENCES
==========
 
For more information on the application desktop toolbar interface, please
see the Chapter "Extending the Windows 95 Shell : Application Desktop
Toolbars" in the "Programmer's Guide to Windows 95."  The guide is
available in the Win32 SDK Help file under "Guides."
 


0
 
LVL 39

Author Comment

by:abel
ID: 1427591
Thanks, this will save me a lot of work! It was just the answer I needed.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now