LRasterPaintWindow::SetWndHandle

#include "Ltwrappr.h"

L_INT LRasterPaintWindow::SetWndHandle(hWnd)

HWND hWnd;

/* handle to a window */

Sets the handle of the window to be attached to the paint window.

Parameter

Description

hWnd

Handle to the window to be attached to the paint window.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The passed window handle will be attached to the paint window. If NULL is passed, then the previously attached window will be detached from the paint window.

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::SetBitmap, LRasterPaintWindow::GetBitmap, Class Members

Example

L_VOID MyFunc(HWND hWnd, UINT uMsg , WPARAM wParam,  LPARAM lParam)
{
LRasterPaintWindow MyLRasterPntWnd;

   MyLRasterPntWnd.SetWndHandle(hWnd);
   MyLRasterPntWnd.HandlePalette (uMsg , wParam , lParam);
   MyLRasterPntWnd.Repaint ();
}