LInet::SetImageWindow

#include "ltwrappr.h"

L_VOID LInet::SetImageWindow(hWnd)

HWND hWnd;

/* image window handle */

Sets the window used to display a received image.

Parameter

Description

hWnd

Handle of the window used to display a received image.

Returns

None.

Comments

This function can be used to display received images.

Required DLLs and Libraries

LTNET

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:

LInet::OnImageReceived, Class Members

Example

// a user defined class derived from LInet should be used to support the 
// OnImageReceived callback function
// suppose it was named as LUserInet

LUserInet UserInet;
LInet L_FAR *plRemote;
LBitmapBase Bitmap;

// First side will send a bitmap.
// connect to LEAD
UserInet.Connect("207.238.49.190", 1000);
plRemote = UserInet.GetFirstItem();
UserInet.SendBitmap(plRemote, Bitmap.GetHandle(), FILE_CMP, 24, 2, NULL);

// Other side to receive the image
HWND hWnd;

// other operations
UserInet.SetImageWindow(hWnd);

// other operations
L_INT LUserInet:: OnImageReceived(LInet L_FAR *plConnection, L_INT nError, LBitmapBase L_FAR *pBitmap)
{
     // to let the callback display the image.
     LInet::OnImageReceived(plConnection, nError, pBitmap);
     return SUCCESS;
}