L_InetSendSizeWinCmd

#include "l_bitmap.h"
#include "ltnet.h"

L_LTNET_API L_INT L_InetSendSizeWinCmd(hComputer, uCommandID, uWindowID, nLeft, nTop, nWidth, nHeight)

L_COMP hComputer;

/* handle to a remote computer */

L_UINT uCommandID;

/* command id */

LONG_PTR uWindowID;

/* window id */

L_INT nLeft;

/* horizontal position */

L_INT nTop;

/* vertical position */

L_INT nWidth;

/* window width */

L_INT nHeight;

/* window height */

Sends a size window command to a remote computer.

Parameter

Description

hComputer

Handle of the remote computer to which the command will be sent.

uCommandID

Command ID. Each command sent by a member of a connection should have a unique ID. Since a member of a connection may send several commands, this ID allows that member to identify when a specific command request has been completed.

uWindowID

The id of the window to size. This id should be unique for each window.

nLeft

X coordinate of the new origin of the window.

nTop

Y coordinate of the new origin of the window.

nWidth

New width of window.

nHeight

New height of window.

Returns

SUCCESS

This function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The remote computer should respond by calling L_InetSendSizeWinRsp in its INETCOMMANDCALLBACK function. This callback function must be set using L_InetSetCommandCallback.

With this command, the local computer will signal the remote computer to size a window using the specified parameters.

To receive responses to commands, provide an INETRESPONSECALLBACK function. This function must be set using L_InetSetResponseCallback.

The INETCOMMANDCALLBACK function will receive the uWindowID, nLeft, nTop, nWidth and nHeight information in the pParams parameter. The uWindowID information will be in pParams[0]. The nLeft information will be in pParams[1], and so forth.

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:

L_InetSendSizeWinRsp, INETRESPONSECALLBACK, INETCOMMANDCALLBACK

Topics:

Sending Commands and Responses

 

A Client-Server Diagram: Sending Commands and Responses

Example

 L_INT InetSendSizeWinCmdExample(L_COMP hComputer,L_UINT uWindowID,L_UINT *guCommandID)
{
   return L_InetSendSizeWinCmd(hComputer, *guCommandID++, uWindowID, 0, 0, 300, 200);
}