Solved

Help! How to change size of max windows.

Posted on 1997-06-23
2
236 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

808 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