LRasterPaintWindow::SetBitmap

#include "Ltwrappr.h"

L_INT LRasterPaintWindow::SetBitmap(pLBitmap)

LBitmapBase * pLBitmap;

/* pointer to an LBitmapBase class object */

Attaches a bitmap to the class object.

Parameter

Description

pLBitmap

Pointer to an LBitmapBase class object which contains the bitmap to attach to the LRasterPaintWindow class object.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

LRasterPaintWindow::Initialize must be called before calling this function.

The bitmap set by calling this function is the bitmap that will be displayed in the RasterPaint window. This is also the bitmap on which painting will occur.

Required DLLs and Libraries

LTPNT
LTDIS
LTFIL
LTAUT
LTCON
LTTLB

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LRasterPaintWindow::SetWndHandle, LRasterPaintWindow::GetBitmap, Class Members

Example

L_VOID LoadBitmap(LRasterPaintWindow  *pRasterPntWnd ,HWND hWnd)
{
   LBitmapBase LBtmpbase;

   if(LBtmpbase.DialogFile()->DoModalOpen(hWnd) == SUCCESS)
       pRasterPntWnd->SetBitmap(&LBtmpbase);
}