wpQueryBitmapHandle - Syntax

This method is specific to Version 4, or higher, of the OS/2 operating system.

This instance method returns a handle to the bitmap that can be displayed showing the contents of the image file and a handle to the palette to be used when displaying the bitmap.

#define INCL_WINWORKPLACE
#include <os2.h>

WPBitmap     *somSelf;           /*  Pointer to the object on which the method is being invoked. */
HBITMAP      *phBitmap;          /*  Pointer to the buffer to receive the handle of the bitmap. */
HPAL         *phPalette;         /*  Pointer to the buffer to receive the handle of the palette.  If this parameter is NULL, no palette handle is returned. */
ULONG         ulWidth;           /*  Width of the bitmap.  This parameter is required.  If this parameter is 0, the bitmap will not be scaled. */
ULONG         ulHeight;          /*  Height of the bitmap.  This parameter is required.  If this parameter is 0, the bitmap will not be scaled. */
ULONG         ulFlags;           /*  Processing flags. */
LONG          lBackgroundColor;  /*  Color to be used for transparent pixels. */
BOOL         *pbQuitEarly;       /*  Buffer containing quit early flag.  If this parameter is NULL, the caller will not be able to asynchronously abort the loading of the bitmap. */
BOOL32        rc;                /*  Success indicator. */

rc = _wpQueryBitmapHandle(somSelf, phBitmap,
       phPalette, ulWidth, ulHeight, ulFlags,
       lBackgroundColor, pbQuitEarly);


[Back: wpQueryBitmapHandle]
[Next: wpQueryBitmapHandle Parameter - somSelf]