LInet::CreateWnd

#include "ltwrappr.h"

L_INT LInet::CreateWnd(hParentWnd, pOptions, nID, uStyles=WS_VISIBLE, nX=0, nY=0, nCx=320, nCy=200)

HWND hParentWnd;

/* handle of the parent window */

pCONLISTOPTIONS pOptions;

/* options for the window control */

L_INT nID;

/* the control’s ID */

DWORD uStyles;

/* control’s style */

L_INT nX;

/* x coordinate for the window */

L_INT nY;

/* y coordinate for the window */

L_INT nCx;

/* width of the window */

L_INT nCy;

/* height of the window */

Creates the connection window control using the specified parameters.

Parameter

Description

hParentWnd

Handle of the parent window.

pOptions

Options of the connction list window control.

nID

The control’s ID.

uStyles

The style of the window control. Apply any combination of window styles and tree view styles. For more information on Windows styles, refer to your compiler’s help file. For more information window styles, refer to MICROSOFT WINDOWS styles.

nX

X coordinate for the origin of the connection window.

nY

Y coordinate for the origin of the connection window.

nCx

The width of the connection window.

nCy

The height of the connection window.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

This function causes the class object to create the control window using the specified parameters.

If the control window has been created, it will have a tree view appearance with two branches, one for the server that my computer connected to them, and the other for clients were connected to my computer.

If the user passed pOptions->hServerIcon or pOptions->hClientIcon as NULL, then the function will load the default icons.

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::ExpandWnd, Class Members

Example

LInet Inet;
HWND hParentWnd;

// other operations

Inet.CreateWnd(hParentWnd, NULL);
Inet.ExpandWnd();