Rogue Wave Views
Foundation Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvBitmapAllocationResult Class Reference

Return type of IlvBitmapAllocationFailedCallback functions. More...

#include <ilviews/windows/config.h>

Public Member Functions

 IlvBitmapAllocationResult (HBITMAP bitmap)
 Implicit cast to simplify the implementation of IlvBitmapAllocationFailedCallback functions. More...
 

Detailed Description

Return type of IlvBitmapAllocationFailedCallback functions.

User-defined IlvBitmapAllocationFailedCallback functions are invoked in situation where Views cannot allocate memory for an IlvBitmap.
This type is the returned type from these callback functions.

See also
IlvWindowsDisplayConfig::setBitmapAllocationFailedCallback(IlvBitmapAllocationFailedCallback).

Constructor & Destructor Documentation

IlvBitmapAllocationResult::IlvBitmapAllocationResult ( HBITMAP  bitmap)

Implicit cast to simplify the implementation of IlvBitmapAllocationFailedCallback functions.

This constructor is implicitely used when, in the return statement of an implementation of a IlvBitmapAllocationFailedCallback, you would be writing a fragment such as:

IlvBitmapAllocationResult
MyBitmapAllocationFailureCallback(IlvDisplay*           display,
                                  IlvDim                width,
                                  IlvDim                height,
                                  IlUShort              depth,
                                  IlvBitmap::MemoryType memoryType,
                                  IlUInt                attemptCounter)
{
  HBITMAP hBitmap = ...;
  ...
  return hBitmap;
}

© Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.