Browse Prior Art Database

Providing Container Background Bitmap Support for Non-WPS-Based Application

IP.com Disclosure Number: IPCOM000112581D
Original Publication Date: 1994-Jun-01
Included in the Prior Art Database: 2005-Mar-27
Document File: 2 page(s) / 86K

Publishing Venue

IBM

Related People

Johnson, KD: AUTHOR

Abstract

A very important aspect of the OS/2* Workplace Shell* object-oriented environment is the ability to provide a consistent user interface across various applications. Users become accustomed to the consistent interface and come to expect applications launched from the Workplace Shell desktop to provide this functionality. Applications can easily provide much of this consistency by using the Workplace Shell class libraries with predefined class and method support.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 52% of the total text.

Providing Container Background Bitmap Support for Non-WPS-Based Application

      A very important aspect of the OS/2* Workplace Shell*
object-oriented environment is the ability to provide a consistent
user interface across various applications.  Users become accustomed
to the consistent interface and come to expect applications launched
from the Workplace Shell desktop to provide this functionality.
Applications can easily provide much of this consistency by using the
Workplace Shell class libraries with predefined class and method
support.

      However, many applications may not want to use the Workplace
Shell class libraries, but will want to provide the consistent user
interface normally associated with the Workplace Shell environment.
A major illustration of this would be those applications that wish to
remain platform-independent.  Portability issues must be addressed
when application versions in other environments are likely.

      Background bitmap support in the OS/2 container control is one
of the commonly used features in the OS/2 Workplace Shell application
environment that is supported via the class libraries.  This
disclosure describes a solution implemented by the Window Management
System (a Presentation Manager-based extension tool) which will
simulate the Workplace Shell's support for background bitmaps in the
container control.  This Presentation Manager-based solution
increases the usability and effectiveness of an application that
wishes to provide background bitmap support but does not want to use
the Workplace Shell class libraries.  This is true whether or not the
application is launched from the Workplace Shell.  However, any
applications that are launched for the Workplace Shell will provide
the added consistency of having the same "look and feel" as the
Workplace Shell container background bitmap support.

      The Window Management System Presentation Manager-based
solution for solving this problem is initiated when the application
sends a WMS_CNR_DRAWBITMAP message (with a handle to the bitmap to be
displayed) to the container control.  WMS intercepts this message and
implements the following algorithm:

1.  Send the CM_QUERYCNRINFO message to the container in order to
    obtain the CNRINFO structure.

2.  If this is a new bitmap and an old bitmap is still loaded in
    memory, then use the GpiDeleteBitmap call to delete the old
    bitmap.

3.  Save the handle to the new bitmap to be displayed in an internal
    structure.

4.  Set the flWindowAttr field of the CNRINFO st...