Solved

Help! How to change size of max windows.

Posted on 1997-06-23
2
229 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
Comment Utility
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
Comment Utility
Thanks, this will save me a lot of work! It was just the answer I needed.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

762 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

8 Experts available now in Live!

Get 1:1 Help Now