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 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_INT LRasterPaintWindow_SetBitmapExample(LRasterPaintWindow *pRasterPntWnd ,HWND hWnd) { L_INT nRet; LBitmapBase LBtmpbase; if(LBtmpbase.DialogFile()->DoModalOpen(hWnd) == SUCCESS_DLG_OK) { nRet = pRasterPntWnd->SetBitmap(&LBtmpbase); if(nRet != SUCCESS) return nRet; } else return FAILURE; return SUCCESS; }