Solved

Help! How to change size of max windows.

Posted on 1997-06-23
2
244 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

733 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